Skip to content

v1.2.1

v1.2.1 #10

Workflow file for this run

# Deploy app when is tagged on main branch (a release is published)
name: release
on:
release:
types: [created]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment, but do not cancel in-progress runs
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Prepare release
working-directory: dashgit-web
run: |
chmod u+rx ./prepare-release.sh
./prepare-release.sh "$GITHUB_REF_NAME"
- name: Upload artifact to deploy
uses: actions/upload-pages-artifact@v3.0.1
with:
path: 'dashgit-web/dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4.0.4