Skip to content

Commit

Permalink
use curl instead of node
Browse files Browse the repository at this point in the history
  • Loading branch information
onemen committed Mar 7, 2024
1 parent 0784f4e commit 1af18b4
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/bitbucket.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,26 @@ jobs:
# with:
# name: ${{ env.XPI_NAME }}

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
# - name: Use Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '20'

- name: Install dependencies
run: |
npm install node-fetch form-data
# - name: Install dependencies
# run: |
# npm install node-fetch form-data

# - name: Upload dev-build to bitbucket
# env:
# BITBUCKET_ACCESS_TOKEN: ${{ secrets.BITBUCKET_ACCESS_TOKEN }}
# run: node ./utils/bitbucket.mjs

- name: Upload dev-build to bitbucket
env:
BITBUCKET_ACCESS_TOKEN: ${{ secrets.BITBUCKET_ACCESS_TOKEN }}
run: node ./utils/bitbucket.mjs
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'
# - name: Upload dev-build to bitbucket
Expand Down

0 comments on commit 1af18b4

Please sign in to comment.