-
-
Notifications
You must be signed in to change notification settings - Fork 134
86 lines (75 loc) · 2.43 KB
/
release-please.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: ' 🚀 Generate Release Please'
on:
workflow_dispatch:
push:
branches:
- main
permissions:
actions: read
checks: write
contents: write
issues: read
packages: write
pull-requests: write
repository-projects: read
statuses: read
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
version: ${{ steps.release.outputs.version }}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Release Please Results
env:
RESULTS: ${{ toJSON(steps.release.outputs) }}
run: echo "$RESULTS"
- name: Checkout code
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v4
- name: tag versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/streetsidesoftware/vscode-spell-checker.git"
git tag -a v${{ steps.release.outputs.version }} -m "Release v${{ steps.release.outputs.version }}"
git push origin v${{ steps.release.outputs.version }}
result:
runs-on: ubuntu-latest
needs:
- release-please
steps:
- name: Summary Info
uses: streetsidesoftware/actions/public/summary@v1
with:
text: |
# Release Please Results
Release Created: ${{ needs.release-please.outputs.release_created || 'false' }}
Results:
```json
${{ toJSON(needs.release-please.outputs) }}
```
assets:
needs:
- release-please
if: ${{ needs.release-please.outputs.release_created }}
uses: ./.github/workflows/release-assets.yml
with:
ref: ${{ needs.release-please.outputs.tag_name }}
publish:
needs:
- release-please
if: ${{ needs.release-please.outputs.release_created }}
uses: ./.github/workflows/manual-publish.yml
with:
ref: ${{ needs.release-please.outputs.tag_name }}
secrets:
OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }}
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}