-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.49 KB
/
phpunit-slicer-release.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: phpunit-slicer-release
on:
release:
types: [ created ]
env:
php_version: 8.3
node_version: lts/iron
jobs:
publish-binaries:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./builds
permissions:
contents: write
concurrency:
group: phpunit-slicer-publish-binaries-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get current release tag
id: branch-name
run: echo "SOURCE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: add assets to release
run: |
sha512sum phpunit-slicer > phpunit-slicer.sha512sum
gh release upload ${{ steps.branch-name.outputs.SOURCE_TAG }} phpunit-slicer.sha512sum
gh release upload ${{ steps.branch-name.outputs.SOURCE_TAG }} phpunit-slicer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-docs:
runs-on: ubuntu-latest
concurrency:
group: phpunit-slicer-publish-docs-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Publish to wiki
uses: SwiftDocOrg/github-wiki-publish-action@v1
with:
path: "docs"
env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.ABENEVAUT_GITHUB_TOKEN }}