diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..001eb3b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,21 @@ +name: release + +on: + push: + branches: + - main + paths: + - 'RELEASE' + +jobs: + gh-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: | + gh release create "$(cat RELEASE | sed -r 's/^version: (.+)$/\1/')" --generate-notes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE: ${{ github.event.issue.html_url }} diff --git a/.go-version b/.go-version new file mode 100644 index 0000000..b57fc72 --- /dev/null +++ b/.go-version @@ -0,0 +1 @@ +1.18.2 diff --git a/RELEASE b/RELEASE new file mode 100644 index 0000000..2ce5d90 --- /dev/null +++ b/RELEASE @@ -0,0 +1 @@ +version: v0.0.1 \ No newline at end of file