Skip to content

Commit

Permalink
updated publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-ssch committed Jan 11, 2025
1 parent e85cd4b commit d1771d3
Showing 1 changed file with 26 additions and 11 deletions.
37 changes: 26 additions & 11 deletions .github/workflows/publish-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,28 @@ on:
- "main"
paths: "Frontend/**"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
publish:
defaults:
run:
working-directory: Frontend
defaults:
run:
working-directory: Frontend
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v1
with:
Expand All @@ -23,10 +36,12 @@ jobs:
run: |
npm ci --force
npm run build
- name: Deploy
uses: JamesIves/[email protected]
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: Frontend/dist/browser
CLEAN: true
path: "Frontend/dist/browser"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit d1771d3

Please sign in to comment.