Skip to content

Commit

Permalink
update deploy workflow to generate simple download page
Browse files Browse the repository at this point in the history
  • Loading branch information
pljakobs committed Dec 13, 2024
1 parent 757c7c8 commit 38ec649
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Build and Deploy Quasar App
on:
push:
branches:
- devel # Change this to your default branch
- feature/newVueComponets
- develop
- feature/newVueComponents

jobs:
build:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18" # Use the Node.js version compatible with your project
node-version: "18"

- name: Install dependencies
run: npm install
Expand All @@ -38,7 +38,7 @@ jobs:
run: echo $(git describe --abbrev=4 --dirty --always --tags)-[$(git rev-parse --abbrev-ref HEAD)] > dist/spa/VERSION

- name: Upload SPA files to GitHub
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v2
with:
name: spa-files
path: dist/spa/
Expand All @@ -48,3 +48,17 @@ jobs:
with:
name: fileList.h
path: ./fileList.h

- name: Create download page
run: |
mkdir -p dist/download
echo "<html><body><h1>Download Artifacts</h1><ul>" > dist/download/index.html
echo "<li><a href='spa-files.zip'>Download SPA Files</a></li>" >> dist/download/index.html
echo "<li><a href='fileList.h'>Download fileList.h</a></li>" >> dist/download/index.html
echo "</ul></body></html>" >> dist/download/index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/download

0 comments on commit 38ec649

Please sign in to comment.