fix restore event missing CityRefreshEvent #59
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: Deploy | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create Revision | |
id: revision | |
run: echo "value=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Deploy | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
preCommands: | | |
npm run tsc | |
command: | | |
deploy --dry-run --outdir=dist --define GIT_COMMIT_SHA:"\"${{ steps.revision.outputs.value }}\"" | |
deploy --define GIT_COMMIT_SHA:"\"${{ steps.revision.outputs.value }}\"" | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
wranglerVersion: "3.105.0" | |
- name: Create Sentry release | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
with: | |
sourcemaps: dist | |
ignore_missing: true | |
version: ${{ steps.revision.outputs.value }} |