Compare commits
6
Commits
506ea08c6d
...
v1.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
603e1e344b | ||
|
|
96e47ab87a | ||
|
|
c3418b3c3b | ||
|
|
5048968cdf | ||
|
|
a845157c67 | ||
|
|
68f3a610bb |
@@ -68,6 +68,7 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Smoke test
|
- name: Smoke test
|
||||||
|
if: matrix.goos == 'linux' && matrix.goarch == 'amd64'
|
||||||
run: |
|
run: |
|
||||||
chmod +x bin/nuntius-${{ steps.build.outputs.version_no_v }}-${{ matrix.goos }}-${{ matrix.goarch }}
|
chmod +x bin/nuntius-${{ steps.build.outputs.version_no_v }}-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
./bin/nuntius-${{ steps.build.outputs.version_no_v }}-${{ matrix.goos }}-${{ matrix.goarch }} --version
|
./bin/nuntius-${{ steps.build.outputs.version_no_v }}-${{ matrix.goos }}-${{ matrix.goarch }} --version
|
||||||
@@ -108,17 +109,12 @@ jobs:
|
|||||||
- name: Create release
|
- name: Create release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
|
GITEA_REF_NAME: ${{ gitea.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# JSON-escape the release body with sed: backslashes first, then
|
BODY=$(sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e 's/\t/\\t/g' -e 's/\r//g' release-body.md | sed ':a;N;$!ba;s/\n/\\n/g')
|
||||||
# quotes, tabs, and carriage returns, and finally fold newlines into
|
|
||||||
# \n. Wrap the result in quotes to form a JSON string.
|
|
||||||
BODY=$(sed -e 's/\\/\\\\/g' \
|
|
||||||
-e 's/"/\\"/g' \
|
|
||||||
-e 's/\t/\\t/g' \
|
|
||||||
-e 's/\r//g' \
|
|
||||||
release-body.md \
|
|
||||||
| sed ':a;N;$!ba;s/\n/\\n/g')
|
|
||||||
BODY="\"${BODY}\""
|
BODY="\"${BODY}\""
|
||||||
|
|
||||||
response=$(curl -sS -w '\n%{http_code}' \
|
response=$(curl -sS -w '\n%{http_code}' \
|
||||||
@@ -126,13 +122,7 @@ jobs:
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-X POST \
|
-X POST \
|
||||||
"${GITEA_SERVER_URL}/api/v1/repos/${GITEA_REPOSITORY}/releases" \
|
"${GITEA_SERVER_URL}/api/v1/repos/${GITEA_REPOSITORY}/releases" \
|
||||||
-d "{
|
-d "{\"tag_name\":\"${GITEA_REF_NAME}\",\"name\":\"${GITEA_REF_NAME}\",\"body\":${BODY},\"draft\":false,\"prerelease\":false}")
|
||||||
\"tag_name\": \"${GITEA_REF_NAME}\",
|
|
||||||
\"name\": \"${GITEA_REF_NAME}\",
|
|
||||||
\"body\": ${BODY},
|
|
||||||
\"draft\": false,
|
|
||||||
\"prerelease\": false
|
|
||||||
}")
|
|
||||||
|
|
||||||
http_code=$(echo "$response" | tail -1)
|
http_code=$(echo "$response" | tail -1)
|
||||||
body=$(echo "$response" | sed '$d')
|
body=$(echo "$response" | sed '$d')
|
||||||
@@ -151,6 +141,9 @@ jobs:
|
|||||||
- name: Upload assets
|
- name: Upload assets
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||||
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||||
|
GITEA_REF_NAME: ${{ gitea.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
RELEASE_ID=$(cat release-id.txt)
|
RELEASE_ID=$(cat release-id.txt)
|
||||||
|
|||||||
@@ -45,6 +45,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
when it finds unformatted files.
|
when it finds unformatted files.
|
||||||
- **Missing `just fmt` recipe** — added `gofmt -w` target.
|
- **Missing `just fmt` recipe** — added `gofmt -w` target.
|
||||||
- **Copyright headers** — added to all Go and Python source files.
|
- **Copyright headers** — added to all Go and Python source files.
|
||||||
|
- **Smoke test restricted to native builds** — cross-compiled binaries now
|
||||||
|
skip the smoke test step since they cannot execute on the Linux amd64 CI
|
||||||
|
runner.
|
||||||
|
|
||||||
[development]: https://sourcedock.dev/petrbalvin/nuntius/compare/v1.1.0...development
|
[development]: https://sourcedock.dev/petrbalvin/nuntius/compare/v1.1.0...development
|
||||||
[1.1.0]: https://sourcedock.dev/petrbalvin/nuntius/releases/tag/v1.1.0
|
[1.1.0]: https://sourcedock.dev/petrbalvin/nuntius/releases/tag/v1.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user