minecraft.waylonwalker/.github/workflows/release.yml
2023-03-09 19:46:11 -06:00

23 lines
710 B
YAML

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: /home/runner/go/bin/packwiz refresh
- run: /home/runner/go/bin/packwiz modrinth export
- run: |
VERSION=`cat pack.toml | grep ^version | sed 's/version = "\(.*\)"/\1/'`
gh release create v$VERSION --generate-notes *.mrpack
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}