mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat(ci): upload dev build to r2
This commit is contained in:
parent
5a930c4196
commit
a9f8525120
1 changed files with 5 additions and 4 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -262,7 +262,6 @@ jobs:
|
||||||
path: dist/${{ env.BINARY_NAME }}
|
path: dist/${{ env.BINARY_NAME }}
|
||||||
|
|
||||||
- name: Prepare publish
|
- name: Prepare publish
|
||||||
if: github.event_name == 'release'
|
|
||||||
run: |
|
run: |
|
||||||
cp README*.md ./dist
|
cp README*.md ./dist
|
||||||
find dist -printf '%P\n' | tar -C dist --no-recursion -zcvf ${{ env.DIST }}.tar.gz -T -
|
find dist -printf '%P\n' | tar -C dist --no-recursion -zcvf ${{ env.DIST }}.tar.gz -T -
|
||||||
|
@ -280,9 +279,11 @@ jobs:
|
||||||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev'
|
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/dev'
|
||||||
uses: cloudflare/wrangler-action@v3
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
|
||||||
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
||||||
command: r2 object put nginx-ui-dev-build/${{ env.COMMIT_HASH }}/${{ env.ARTIFACT }} --file ./dist/${{ env.BINARY_NAME }}
|
apiToken: ${{ secrets.CF_R2_API_TOKEN }}
|
||||||
|
command: |
|
||||||
|
r2 object put nginx-ui-dev-build/${{ env.COMMIT_HASH }}/${{ env.DIST }}.tar.gz --file ./${{ env.DIST }}.tar.gz
|
||||||
|
r2 object put nginx-ui-dev-build/${{ env.COMMIT_HASH }}/${{ env.DIST }}.tar.gz.digest --file ./${{ env.DIST }}.tar.gz.digest
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue