Skip to content

Commit

Permalink
combine bitbucket and build jobs to one file
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen committed Mar 7, 2024
1 parent 07f0589 commit 137b5e3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ env:
XPI_NAME: tabmix-dev-build

jobs:
build:
build-and-upload:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -50,7 +49,7 @@ jobs:
git tag -d dev-build && git tag dev-build $(git rev-parse HEAD)
fi
- name: Upload release asset
- name: Upload release asset to GitHub
env:
GH_TOKEN: ${{ github.token }}
run: |
Expand All @@ -59,3 +58,10 @@ jobs:
fi
gh release edit dev-build --draft=false
gh release upload dev-build /tmp/${{ env.XPI_NAME }}.xpi --clobber
- name: Upload to Bitbucket
run: |
curl --request POST \
--url 'https://api.bitbucket.org/2.0/repositories/onemen/tabmixplus-for-firefox/downloads' \
--header 'Authorization: Bearer ${{ secrets.BITBUCKET_ACCESS_TOKEN }}' \
-F 'files=@/tmp/${{ env.XPI_NAME }}.xpi'

0 comments on commit 137b5e3

Please sign in to comment.