Skip to content

Commit 137b5e3

Browse files
committed
combine bitbucket and build jobs to one file
1 parent 07f0589 commit 137b5e3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ env:
88
XPI_NAME: tabmix-dev-build
99

1010
jobs:
11-
build:
11+
build-and-upload:
1212
runs-on: ubuntu-latest
13-
1413
steps:
1514
- name: Checkout repo
1615
uses: actions/checkout@v4
@@ -50,7 +49,7 @@ jobs:
5049
git tag -d dev-build && git tag dev-build $(git rev-parse HEAD)
5150
fi
5251
53-
- name: Upload release asset
52+
- name: Upload release asset to GitHub
5453
env:
5554
GH_TOKEN: ${{ github.token }}
5655
run: |
@@ -59,3 +58,10 @@ jobs:
5958
fi
6059
gh release edit dev-build --draft=false
6160
gh release upload dev-build /tmp/${{ env.XPI_NAME }}.xpi --clobber
61+
62+
- name: Upload to Bitbucket
63+
run: |
64+
curl --request POST \
65+
--url 'https://api.bitbucket.org/2.0/repositories/onemen/tabmixplus-for-firefox/downloads' \
66+
--header 'Authorization: Bearer ${{ secrets.BITBUCKET_ACCESS_TOKEN }}' \
67+
-F 'files=@/tmp/${{ env.XPI_NAME }}.xpi'

0 commit comments

Comments
 (0)