From a5332cae9501bf37991a86997d491034d13bff43 Mon Sep 17 00:00:00 2001 From: Waylon Walker Date: Thu, 9 Mar 2023 17:55:01 -0600 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..432419b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +name: relese +on: + push: + branches: [ "main" ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - name: Setup Go environment + uses: actions/setup-go@v3.5.0 + - run: go install github.com/packwiz/packwiz@latest + - run: packwiz refresh + - run: packwiz modrinth export + - run: | + VERSION=`cat pack.toml | grep ^version | sed 's/version = "\(.*\)"/\1/'` + gh release create v$VERSION --generate-notes *.mrpack +