Skip to content

Commit

Permalink
Deploy to R2
Browse files Browse the repository at this point in the history
  • Loading branch information
uglyrobot committed Nov 21, 2024
1 parent 77a3403 commit a3c4f82
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Use Node.js 18.x
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x

- name: Build
run: |
Expand All @@ -32,14 +32,12 @@ jobs:
upload: "true"
remove: "true"
purgePullZone: "true"

- name: Release
uses: ncipollo/release-action@v1

- uses: ryand56/r2-upload-action@latest # Can be any release
with:
token: ${{ secrets.TOKEN }}
tag: latest
name: Latest Release
allowUpdates: true
makeLatest: true
artifacts: build/chat.js
artifactContentType: text/javascript
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: ${{ secrets.R2_BUCKET }}
source-dir: build
keep-file-fresh: true

0 comments on commit a3c4f82

Please sign in to comment.