Compare commits

...

17 Commits

Author SHA1 Message Date
b
0834e52316 Merge branch 'main' into staging
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 22:19:51 +00:00
b
673516e3ce fix: adding jq package
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 22:17:55 +00:00
semantic-release-bot
f05b9477f6 chore(release): 1.0.3 [skip ci]
## [1.0.3](https://git.nostrdev.com/sigit/sigit.io/compare/v1.0.2...v1.0.3) (2025-01-31)

### Bug Fixes

* bundling frontend with release ([889bc0e](889bc0e4fc))
2025-01-31 21:53:55 +00:00
b
8d66573a5e 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
Reviewed-on: #317
2025-01-31 21:51:43 +00:00
b
ee3381d376 Merge branch 'main' into staging
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 21:51:36 +00:00
b
889bc0e4fc fix: bundling frontend with release
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 21:51:04 +00:00
semantic-release-bot
8da99c0ed6 chore(release): 1.0.2 [skip ci]
## [1.0.2](https://git.nostrdev.com/sigit/sigit.io/compare/v1.0.1...v1.0.2) (2025-01-31)

### Bug Fixes

* adding api to release url ([aa32dae](aa32dae622))
2025-01-31 20:18:35 +00:00
b
896c18fff0 Merge pull request 'fix: adding api to release url' (#316) from staging into main
Some checks failed
Release to Production / build_and_release (push) Failing after 2m10s
Reviewed-on: #316
2025-01-31 20:16:30 +00:00
b
02063e1ea5 Merge branch 'main' into staging
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 20:16:21 +00:00
b
aa32dae622 fix: adding api to release url
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 20:15:52 +00:00
semantic-release-bot
233dbdf7db chore(release): 1.0.1 [skip ci]
## [1.0.1](https://git.nostrdev.com/sigit/sigit.io/compare/v1.0.0...v1.0.1) (2025-01-31)

### Bug Fixes

* test to see if the automated release works ([031deef](031deef6ca))
2025-01-31 20:12:24 +00:00
b
02120d6b4c Merge pull request 'fix: test to see if the automated release works' (#315) from staging into main
Some checks failed
Release to Production / build_and_release (push) Failing after 2m9s
Reviewed-on: #315
2025-01-31 20:10:19 +00:00
b
1c35512ddf Merge branch 'main' into staging
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 20:09:40 +00:00
b
031deef6ca fix: test to see if the automated release works
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 20:09:07 +00:00
b
b828e75858 Merge pull request 'chore: comments in code' (#314) from staging into main
Some checks failed
Release to Production / build_and_release (push) Failing after 2m11s
Reviewed-on: #314
2025-01-31 20:02:25 +00:00
b
870ac9bb30 Merge branch 'main' into staging
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 20:02:17 +00:00
b
57c1002c2a chore: comments in code
Some checks failed
Release to Staging / build_and_release (push) Has been cancelled
2025-01-31 20:01:39 +00:00
3 changed files with 37 additions and 10 deletions

View File

@ -18,13 +18,19 @@ jobs:
node-version: 20
- name: Install Dependencies
run: npm ci
run: |
npm ci
apt-get update
apt-get install zip -y
apt-get install jq
- name: Create .env File
run: echo "VITE_MOST_POPULAR_RELAYS=${{ vars.VITE_MOST_POPULAR_RELAYS }}" > .env
- name: Create Build
run: npm run build
run: |
npm run build
zip -r frontend.zip dist/*
- name: Deploy Build
run: |
@ -37,16 +43,19 @@ jobs:
run: |
npm i
npm i -g semantic-release
# We do a semantic-release DRY RUN to make the job fail if there are no changes to release
echo "do a semantic-release DRY RUN to make the job fail if there are no changes to release"
GITEA_TOKEN=${{ secrets.RELEASE_TOKEN }} GITEA_URL=https://git.nostrdev.com/sigit/sigit.io semantic-release --dry-run | grep -q "There are no relevant changes, so no new version is released." && exit 1
echo "now do the actual release"
GITEA_TOKEN=${{ secrets.RELEASE_TOKEN }} GITEA_URL=https://git.nostrdev.com/sigit/sigit.io semantic-release
- name: Upload assets to release
run: |
RELEASE_ID=`curl -k 'https://git.nostrdev.com/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.id'`
RELEASE_BODY=`curl -k 'https://git.nostrdev.com/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.body'`
# Update body
echo "fetching release id"
RELEASE_ID=`curl -k 'https://git.nostrdev.com/api/v1/repos/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.id'`
echo "fetching release body"
RELEASE_BODY=`curl -k 'https://git.nostrdev.com/api/v1/repos/sigit/sigit.io/releases/latest?access_token=${{ secrets.RELEASE_TOKEN }}' | jq -r '.body'`
echo "Updating release body"
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 }}
# Upload assets
URL="https://git.nostrdev.com/sigit/sigit.io/releases/$RELEASE_ID/assets?access_token=${{ secrets.RELEASE_TOKEN }}"
curl -k $URL -F attachment=@dist.zip
echo "Uploading assets"
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=@frontend.zip

View File

@ -1,3 +1,21 @@
## [1.0.3](https://git.nostrdev.com/sigit/sigit.io/compare/v1.0.2...v1.0.3) (2025-01-31)
### Bug Fixes
- bundling frontend with release ([889bc0e](https://git.nostrdev.com/sigit/sigit.io/commit/889bc0e4fcc21b79d6fc643317ae3423497e265e))
## [1.0.2](https://git.nostrdev.com/sigit/sigit.io/compare/v1.0.1...v1.0.2) (2025-01-31)
### Bug Fixes
- adding api to release url ([aa32dae](https://git.nostrdev.com/sigit/sigit.io/commit/aa32dae62282be9c07ea6e4af514925585d97a2b))
## [1.0.1](https://git.nostrdev.com/sigit/sigit.io/compare/v1.0.0...v1.0.1) (2025-01-31)
### Bug Fixes
- test to see if the automated release works ([031deef](https://git.nostrdev.com/sigit/sigit.io/commit/031deef6ca3b9794d3fadf67b67884137e6af9f2))
# 1.0.0 (2025-01-31)
### Bug Fixes

View File

@ -1,7 +1,7 @@
{
"name": "sigit",
"private": true,
"version": "1.0.0",
"version": "1.0.3",
"type": "module",
"homepage": "https://sigit.io/",
"license": "AGPL-3.0-or-later ",