Skip to content

fix(CICD): fix CICD workflows #25

fix(CICD): fix CICD workflows

fix(CICD): fix CICD workflows #25

Workflow file for this run

name: Web deploy
on:
workflow_dispatch:
push:
branches: ["develop"]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
directory: .
file_name: .env
envkey_GPF_key: ${{ secrets.GPF_key }}
fail_on_empty: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install app dependencies
run: npm install
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: 'www'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1