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 4ab6b18
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 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:
zip-files:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -50,6 +49,10 @@ jobs:
git tag -d dev-build && git tag dev-build $(git rev-parse HEAD)
fi
upload-to-github:
needs: zip-files
runs-on: ubuntu-latest
steps:
- name: Upload release asset
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -59,3 +62,14 @@ jobs:
fi
gh release edit dev-build --draft=false
gh release upload dev-build /tmp/${{ env.XPI_NAME }}.xpi --clobber
upload-to-bitbucket:
needs: zip-files
runs-on: ubuntu-latest
steps:
- 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 4ab6b18

Please sign in to comment.