mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2024-12-26 00:02:34 +01:00
13af811316
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.0.6 to 2.0.8.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](a74c6b72af...c062e08bd5
)
---
updated-dependencies:
- dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
96 lines
2.5 KiB
YAML
96 lines
2.5 KiB
YAML
on:
|
|
push:
|
|
paths:
|
|
- "**.go"
|
|
- "go.*"
|
|
- "**/testdata/**"
|
|
- ".ci/**"
|
|
- ".git*"
|
|
- ".github/workflows/releases.yml"
|
|
pull_request:
|
|
paths:
|
|
- "**.go"
|
|
- "go.*"
|
|
- "**/testdata/**"
|
|
- ".ci/**"
|
|
- ".git*"
|
|
- ".github/workflows/releases.yml"
|
|
|
|
name: GitHub CI
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Get the version
|
|
id: get_version
|
|
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1
|
|
check-latest: true
|
|
id: go
|
|
|
|
- name: Test suite
|
|
run: |
|
|
go version
|
|
cd .ci
|
|
./ci-test.sh
|
|
cd -
|
|
|
|
- name: Build all
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
run: |
|
|
.ci/ci-build.sh "${{ steps.get_version.outputs.VERSION }}"
|
|
|
|
- name: Package
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
run: |
|
|
.ci/ci-package.sh "${{ steps.get_version.outputs.VERSION }}"
|
|
|
|
- name: Install minisign and sign
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
run: |
|
|
sudo apt-get -y install libsodium-dev
|
|
git clone --depth 1 https://github.com/jedisct1/minisign.git
|
|
cd minisign/src
|
|
mkdir -p /tmp/bin
|
|
cc -O2 -o /tmp/bin/minisign -D_GNU_SOURCE *.c -lsodium
|
|
cd -
|
|
/tmp/bin/minisign -v
|
|
echo '#' > /tmp/minisign.key
|
|
echo "${{ secrets.MINISIGN_SK }}" >> /tmp/minisign.key
|
|
cd dnscrypt-proxy
|
|
echo | /tmp/bin/minisign -s /tmp/minisign.key -Sm *.tar.gz *.zip
|
|
ls -l dnscrypt-proxy*
|
|
|
|
- name: Create release
|
|
id: create_release
|
|
uses: actions/create-release@v1
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tag_name: ${{ github.ref }}
|
|
release_name: Release ${{ github.ref }}
|
|
draft: false
|
|
prerelease: false
|
|
|
|
- name: Upload release assets
|
|
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
files: |
|
|
dnscrypt-proxy/*.zip
|
|
dnscrypt-proxy/*.tar.gz
|
|
dnscrypt-proxy/*.minisig
|
|
dnscrypt-proxy/*.msi
|