Skip to content

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
vesla0x1 committed Apr 3, 2024
1 parent f16b25a commit c4fc5be
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions .github/workflows/github-actions-demo.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
name: Publish portfolio on IPFS
run-name: Build Zola portfolio and publish it on IPFS
on: push
jobs:
Explore-GitHub-Actions:
build:
runs-on: ubuntu-latest
environment: production
steps:
- name: Install Zola
uses: taiki-e/install-action@v2
Expand All @@ -13,28 +12,47 @@ jobs:

- 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: Building zola project
run: zola build

- name: making all relative
run: |
cd public
npx all-relative
cd ..
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: vesla0x1-portfolio
path: public

deploy:
needs: build
runs-on: ubuntu-latest
environment: production
steps:
- name: Docker pull
run: |
docker pull ipfs/kubo:latest
- name: Start the container
run: |
docker run -d --name ipfs_host -v ${{ github.workspace }}:/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: Download build files
uses: actions/download-artifact@v4
with:
name: vesla0x1-portfolio

- name: list files
run: ls -al

- name: Add build files to IPFS
run: |
Expand Down

0 comments on commit c4fc5be

Please sign in to comment.