Merge pull request 'fix: bundling frontend with release' (#317) from staging into main
Some checks failed
Release to Production / build_and_release (push) Failing after 2m18s
Some checks failed
Release to Production / build_and_release (push) Failing after 2m18s
Reviewed-on: #317
This commit is contained in:
commit
8d66573a5e
@ -18,13 +18,18 @@ jobs:
|
|||||||
node-version: 20
|
node-version: 20
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: |
|
||||||
|
npm ci
|
||||||
|
apt-get update
|
||||||
|
apt-get install zip -y
|
||||||
|
|
||||||
- name: Create .env File
|
- name: Create .env File
|
||||||
run: echo "VITE_MOST_POPULAR_RELAYS=${{ vars.VITE_MOST_POPULAR_RELAYS }}" > .env
|
run: echo "VITE_MOST_POPULAR_RELAYS=${{ vars.VITE_MOST_POPULAR_RELAYS }}" > .env
|
||||||
|
|
||||||
- name: Create Build
|
- name: Create Build
|
||||||
run: npm run build
|
run: |
|
||||||
|
npm run build
|
||||||
|
zip -r frontend.zip dist/*
|
||||||
|
|
||||||
- name: Deploy Build
|
- name: Deploy Build
|
||||||
run: |
|
run: |
|
||||||
@ -52,4 +57,4 @@ jobs:
|
|||||||
curl --data '{"draft": false,"body":"'"$RELEASE_BODY\n\nFor installation instructions, please visit https://docs.sigit.io/#/"'"}' -X PATCH --header 'Content-Type: application/json' -k https://git.nostrdev.com/sigit/sigit.io/releases/$RELEASE_ID?access_token=${{ secrets.RELEASE_TOKEN }}
|
curl --data '{"draft": false,"body":"'"$RELEASE_BODY\n\nFor installation instructions, please visit https://docs.sigit.io/#/"'"}' -X PATCH --header 'Content-Type: application/json' -k https://git.nostrdev.com/sigit/sigit.io/releases/$RELEASE_ID?access_token=${{ secrets.RELEASE_TOKEN }}
|
||||||
echo "Uploading assets"
|
echo "Uploading assets"
|
||||||
URL="https://git.nostrdev.com/api/v1/repos/sigit/sigit.io/releases/$RELEASE_ID/assets?access_token=${{ secrets.RELEASE_TOKEN }}"
|
URL="https://git.nostrdev.com/api/v1/repos/sigit/sigit.io/releases/$RELEASE_ID/assets?access_token=${{ secrets.RELEASE_TOKEN }}"
|
||||||
curl -k $URL -F attachment=@dist.zip
|
curl -k $URL -F attachment=@frontend.zip
|
||||||
|
Loading…
x
Reference in New Issue
Block a user