Skip to content

Release

Release #44

Workflow file for this run

name: Release
on:
workflow_dispatch: # manual trigger release
inputs:
create_release:
description: 'Create new release'
required: true
type: boolean
release_version:
description: "Version (e.g. 0.1.0)"
required: true
type: string
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Clone project
id: checkout
uses: actions/checkout@v3
- name: Calculate checksum
id: checksum
run: |
sha256sum gaianet > SHA256SUM
sha256sum config.json >> SHA256SUM
sha256sum nodeid.json >> SHA256SUM
sha256sum frpc.toml >> SHA256SUM
sha256sum vector.toml >> SHA256SUM
sha256sum install.sh >> SHA256SUM
sha256sum uninstall.sh >> SHA256SUM
echo "Debug info(SHA256SUM):"
cat SHA256SUM
- name: Tag and release names
id: tag_and_release_names
run: |
echo "tag_name=${{ github.event.inputs.release_version }}" >> $GITHUB_OUTPUT
echo "release_name=GaiaNet-Node v${{ github.event.inputs.release_version }}" >> $GITHUB_OUTPUT
- name: Create Release and Upload Release Asset
if: ${{ github.event.inputs.create_release == 'true' && github.ref == 'refs/heads/main'}}
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.tag_and_release_names.outputs.release_name }}
tag_name: ${{ steps.tag_and_release_names.outputs.tag_name }}
body: TODO New Release.
draft: true
prerelease: true
files: |
install.sh
uninstall.sh
gaianet
config.json
nodeid.json
frpc.toml
vector.toml
SHA256SUM