Skip to content

Commit

Permalink
Reset build flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
bia-pain-bache committed Nov 21, 2024
1 parent 8c622b3 commit d507f81
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Build and Deploy Worker on Release
name: Build and Deploy Worker

on:
release:
types: [published]
on:
push:
branches:
- dev

jobs:
build:
Expand All @@ -11,8 +12,6 @@ jobs:
steps:
- name: Check out the code
uses: actions/checkout@v4
with:
ref: dev

- name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -36,13 +35,3 @@ jobs:
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload built worker to release assets
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./_worker.js
asset_name: worker.js
asset_content_type: application/javascript
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d507f81

Please sign in to comment.