Skip to content

Version 0.4.1

Version 0.4.1 #37

Workflow file for this run

name: πŸš€ Deploy!
on:
release:
types: [published]
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- name: πŸ— Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: πŸ”Ž Identify Commit Hash
id: commit
uses: prompt/actions-commit-hash@v3
- name: πŸ”Ž Identify version
id: get_version
uses: battila7/get-version-action@v2
- name: 🦸 change version in NPM
uses: reedyuk/[email protected]
with:
version: ${{ steps.get_version.outputs.version-without-v }}-${{ steps.commit.outputs.short }}
git-tag-version: "false"
- name: πŸ“¦ Build Site
run: npm ci && npm run build
- name: πŸš› Publish Site
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
projectName: whatsthis
directory: ./dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: main