Skip to content

Commit

Permalink
ci: auto-release
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Jul 25, 2022
1 parent e79afc9 commit 99bd35a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: auto-release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set environment variables
run: |
echo "VERSION=`echo ${GITHUB_REF#refs/*/}`" >> $GITHUB_ENV
- name: Replace variables
run: |
sed -i -e 's/${version}/'"${{env.VERSION}}"'/g' resourcepack/pack.mcmeta
- name: Zip resourcepack
uses: edgarrc/action-7z@v1
with:
args: 7z a "HaruhiismAdditionalMusicPack-${{env.VERSION}}.zip" ./resourcepack/*

- name: Github release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
prerelease: false
files: |
*.zip

0 comments on commit 99bd35a

Please sign in to comment.