Skip to content

Commit

Permalink
Generate js (#3)
Browse files Browse the repository at this point in the history
* generate js by github CI
  • Loading branch information
sabban authored Sep 20, 2023
1 parent 884e866 commit 528a0f0
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/update-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Generate js

on:
push:
paths:
- 'pkg/cloudflare/worker/**'
- '.github/workflows/update-js.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Create local changes
run: |
sudo apt-get install -y make npm
make build-worker-js
- name: Commit files
if: ${{ github.event_name == 'push'}}
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Update dist js" pkg/cloudflare/worker/dist/main.js || exit 0
#token to expire on 09/19/2024
- name: Push changes
if: ${{ github.event_name == 'push'}}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.REPO_ACCESS_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit 528a0f0

Please sign in to comment.