chore(deps): update 5ouma/utils digest to 01bc4f0 (#148) #138
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@01bc4f02a12f9e09bd95036e5b35a809ef2ddb5e # 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 }} |