Skip to content

vesla0x1 is testing out GitHub Actions 🚀 #18

vesla0x1 is testing out GitHub Actions 🚀

vesla0x1 is testing out GitHub Actions 🚀 #18

name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: push
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
environment: production
steps:
- name: Install Zola
uses: taiki-e/install-action@v2
with:
tool: [email protected]
- name: Check out repository code
uses: actions/checkout@v4
- name: Building zola project
run: zola build
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 18
- name: making all relative
run: |
cd public
npx all-relative
cd ..
- name: Docker pull
run: |
docker pull ipfs/kubo:latest
- name: Start the container
run: |
docker run -d --name ipfs_host -v ${{ github.workspace }}/public:/export -v /tmp:/data/ipfs -p 4001:4001 -p 4001:4001/udp -p 127.0.0.1:8080:8080 -p 127.0.0.1:5001:5001 ipfs/kubo:latest
- name: Add public to IPFS
run: |
docker exec ipfs_host ipfs add -r /export