chore(deps): update 5ouma/utils digest to 904b5a0 (#156) #145
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: π Release | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
tagpr: | |
name: π·οΈ Release a New Version | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: Ubuntu-Latest | |
outputs: | |
tag: ${{ steps.tagpr.outputs.tag }} | |
steps: | |
- name: π Checkout Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: π·οΈ Release a New Version | |
id: tagpr | |
uses: Songmu/tagpr@3dca11e7c0d68637ee212ddd35acc3d30a7403a4 # v1.5.0 | |
with: | |
config: .github/tagpr.ini | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
deploy: | |
name: π Deploy to the Production | |
permissions: | |
contents: read | |
deployments: write | |
needs: tagpr | |
if: ${{ needs.tagpr.outputs.tag != '' }} | |
runs-on: Ubuntu-Latest | |
steps: | |
- name: π Checkout Repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: π Setup Bun with Cache | |
uses: 5ouma/utils/setup-bun-with-cache@904b5a020b326785e1898e617f749b63d1c96404 # main | |
- name: πΎ Create a Meta File | |
run: echo '${{ vars.META_FILE }}' >meta.json | |
- name: π οΈ Build | |
run: bun run build | |
- name: β οΈ Deploy to the Production | |
uses: cloudflare/wrangler-action@6d58852c35a27e6034745c5d0bc373d739014f7f # v3.13.0 | |
with: | |
command: pages deploy dist --project-name='${{ github.event.repository.name }}' | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |