mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
update release workflow to work with npm
This commit is contained in:
parent
1fc1de2e59
commit
03a5268f23
1 changed files with 10 additions and 14 deletions
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
|
|
@ -7,20 +7,16 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- name: Checkout
|
||||||
name: Checkout
|
uses: actions/checkout@v1
|
||||||
- uses: actions/setup-node@v1
|
- name: Install NPM dependencies
|
||||||
name: Setup Node
|
run: npm install
|
||||||
with:
|
|
||||||
registry-url: 'https://npm.pkg.github.com'
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn install && yarn build
|
run: npm run build
|
||||||
env:
|
- name: Zip build artifact
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
run: zip -r stremio-web.zip ./build
|
||||||
- run: zip -r stremio-web.zip ./build
|
- name: Upload build artifact to GitHub release assets
|
||||||
- name: Upload binaries to release
|
|
||||||
uses: svenstaro/upload-release-action@v1-release
|
uses: svenstaro/upload-release-action@v1-release
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
@ -28,9 +24,9 @@ jobs:
|
||||||
asset_name: stremio-web.zip
|
asset_name: stremio-web.zip
|
||||||
tag: ${{ github.ref }}
|
tag: ${{ github.ref }}
|
||||||
overwrite: true
|
overwrite: true
|
||||||
- run: |
|
- name: Upload build artifact to Netlify
|
||||||
|
run: |
|
||||||
curl -H "Content-Type: application/zip" \
|
curl -H "Content-Type: application/zip" \
|
||||||
-H "Authorization: Bearer ${{ secrets.netlify_access_token }}" \
|
-H "Authorization: Bearer ${{ secrets.netlify_access_token }}" \
|
||||||
--data-binary "@stremio-web.zip" \
|
--data-binary "@stremio-web.zip" \
|
||||||
https://api.netlify.com/api/v1/sites/stremio-staging.netlify.com/deploys
|
https://api.netlify.com/api/v1/sites/stremio-staging.netlify.com/deploys
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue