-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 1.02 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build
on:
push:
branches-ignore:
- dependabot/**
jobs:
run-ci:
uses: Jikoo/PlanarActions/.github/workflows/ci_maven.yml@master
release:
name: Create Github Release
needs: [ run-ci ]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-ci
path: ${{ github.event.repository.name }}-ci
- name: Parse Tag Name
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Create Release
id: create-release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: AnvilUnlocker ${{ steps.get_version.outputs.result }}
draft: true
prerelease: true
files: ./${{ github.event.repository.name }}-ci/AnvilUnlocker.jar