Skip to content

Commit

Permalink
Merge pull request #1 from thinhle-agilityio/github-actions
Browse files Browse the repository at this point in the history
GitHub actions
  • Loading branch information
thinhle-agilityio committed Sep 12, 2023
2 parents 7e2f983 + 92fc48f commit 463e91a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: learn-github-actions
run-name: ${{ github.actor }} is learning GitHub Actions

on:
# When Pull Request is merged
pull_request:
branches:
- main
types: [closed]

jobs:
Deploy-Workers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install -g lerna
- run: npm install
- run: lerna run deploy --since=origin/main
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}

0 comments on commit 463e91a

Please sign in to comment.