Skip to content

Commit 9df9d8a

Browse files
authored
Merge pull request #25 from kivra/checkout-code-before-release
checkout code before release
2 parents 1ba8c13 + de7d5d4 commit 9df9d8a

File tree

1 file changed

+39
-38
lines changed

1 file changed

+39
-38
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,47 +15,48 @@ jobs:
1515
otp: ["27", "28"]
1616
fail-fast: false
1717
steps:
18-
- uses: actions/checkout@v5
19-
- uses: erlef/setup-beam@v1
20-
id: setup-beam
21-
with:
22-
otp-version: ${{matrix.otp}}
23-
rebar3-version: "3"
24-
- name: Compile
25-
run: make compile
26-
- name: Check format
27-
run: make check-format
28-
- name: Run xref
29-
run: make xref
30-
- name: Fetch PLT
31-
uses: actions/cache@v4
32-
id: cache-plt
33-
with:
34-
path: |
35-
_build/default/*_plt
36-
key: dialyzer-${{ github.ref_name }}-${{ matrix.otp }}
37-
restore-keys: |
38-
dialyzer-${{ github.event.repository.default_branch || 'master' }}-${{ matrix.otp }}
39-
dialyzer-${{ github.event.repository.default_branch || 'master' }}-
40-
- name: Run dialyzer
41-
run: make dialyze
42-
- name: Run eunit tests
43-
run: make eunit
44-
- name: Run ct tests
45-
run: make ct
18+
- uses: actions/checkout@v5
19+
- uses: erlef/setup-beam@v1
20+
id: setup-beam
21+
with:
22+
otp-version: ${{matrix.otp}}
23+
rebar3-version: "3"
24+
- name: Compile
25+
run: make compile
26+
- name: Check format
27+
run: make check-format
28+
- name: Run xref
29+
run: make xref
30+
- name: Fetch PLT
31+
uses: actions/cache@v4
32+
id: cache-plt
33+
with:
34+
path: |
35+
_build/default/*_plt
36+
key: dialyzer-${{ github.ref_name }}-${{ matrix.otp }}
37+
restore-keys: |
38+
dialyzer-${{ github.event.repository.default_branch || 'master' }}-${{ matrix.otp }}
39+
dialyzer-${{ github.event.repository.default_branch || 'master' }}-
40+
- name: Run dialyzer
41+
run: make dialyze
42+
- name: Run eunit tests
43+
run: make eunit
44+
- name: Run ct tests
45+
run: make ct
4646

4747
release:
4848
if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'no-release:') == false
4949
needs: build_and_test
5050
runs-on: ubuntu-latest
5151
steps:
52-
- name: Bump version and push tag
53-
id: tag_version
54-
uses: mathieudutour/[email protected]
55-
with:
56-
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
- name: Create GitHub Release
58-
shell: bash
59-
env:
60-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61-
run: gh release create "${{ steps.tag_version.outputs.new_tag }}" --generate-notes
52+
- uses: actions/checkout@v5
53+
- name: Bump version and push tag
54+
id: tag_version
55+
uses: mathieudutour/[email protected]
56+
with:
57+
github_token: ${{ secrets.GITHUB_TOKEN }}
58+
- name: Create GitHub Release
59+
shell: bash
60+
env:
61+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
run: gh release create "${{ steps.tag_version.outputs.new_tag }}" --generate-notes

0 commit comments

Comments
 (0)