-
Notifications
You must be signed in to change notification settings - Fork 38
72 lines (62 loc) · 1.72 KB
/
create-release.yml
File metadata and controls
72 lines (62 loc) · 1.72 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Create a Release
on:
push:
tags:
- v*.*.*
jobs:
check-workflows:
uses: ./.github/workflows/check-workflows.yml
build-artifacts:
needs: check-workflows
uses: ./.github/workflows/windows-build.yml
with:
upload-artifacts: true
create-release:
needs: build-artifacts
runs-on: ubuntu-latest
permissions:
contents: write
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v6
- name: Create a Release
run: gh release create ${{ github.ref }} -F ReleaseNote.md
- name: Download cobj.exe
uses: actions/download-artifact@v8
with:
name: cobj.exe
- name: Download libcobj.jar
uses: actions/download-artifact@v8
with:
name: libcobj.jar
- name: Publish artifacts
run: |
gh release upload ${{ github.ref_name }} cobj.exe --clobber
gh release upload ${{ github.ref_name }} libcobj.jar --clobber
gh release upload ${{ github.ref_name }} config/default.conf --clobber
# publish libcobj.jar to GitHub Packages
publish:
needs: check-workflows
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v6
- run: |
cd ../
mv opensourcecobol4j/* .
mv libcobj/* opensourcecobol4j
- uses: actions/setup-java@v5
with:
java-version: '11'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Publish package
uses: gradle/gradle-build-action@v3
with:
arguments: publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}