|
1 | 1 | name: Release |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - tags: |
6 | | - - '*.*.*' |
| 4 | + push: |
| 5 | + tags: |
| 6 | + - '*.*.*' |
7 | 7 |
|
8 | 8 | jobs: |
9 | | - build: |
10 | | - name: Create Release |
11 | | - runs-on: ubuntu-latest |
12 | | - |
13 | | - steps: |
14 | | - - name: Checkout |
15 | | - uses: actions/checkout@v3 |
16 | | - |
17 | | - - name: Build |
18 | | - id: build |
19 | | - uses: gocom/action-textpattern-package-plugin@master |
20 | | - |
21 | | - - name: Changelog |
22 | | - id: changelog |
23 | | - run: | |
24 | | - echo "contents<<CHANGELOGEOF" >> $GITHUB_OUTPUT |
25 | | - sed -e '1,/h2. Changelog/d' README.textile | sed -e '1,/h3./d' -e '/h3./,$d' | sed 's/@/`/g' >> $GITHUB_OUTPUT |
26 | | - echo "CHANGELOGEOF" >> $GITHUB_OUTPUT |
27 | | -
|
28 | | - - name: Create Release |
29 | | - id: create_release |
30 | | - uses: shogo82148/actions-create-release@v1 |
31 | | - with: |
32 | | - body: ${{ steps.changelog.outputs.contents }} |
33 | | - |
34 | | - - name: Upload Compressed Plugin Installer |
35 | | - uses: shogo82148/actions-upload-release-asset@v1 |
36 | | - with: |
37 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} |
38 | | - asset_path: ${{ github.workspace }}/${{ steps.build.outputs.compressed }} |
39 | | - asset_name: ${{ steps.build.outputs.name }}_v${{ steps.build.outputs.version }}_zip.txt |
40 | | - asset_content_type: text/plain |
41 | | - |
42 | | - - name: Upload Uncompressed Plugin Installer |
43 | | - uses: shogo82148/actions-upload-release-asset@v1 |
44 | | - with: |
45 | | - upload_url: ${{ steps.create_release.outputs.upload_url }} |
46 | | - asset_path: ${{ github.workspace }}/${{ steps.build.outputs.uncompressed }} |
47 | | - asset_name: ${{ steps.build.outputs.name }}_v${{ steps.build.outputs.version }}.txt |
48 | | - asset_content_type: text/plain |
| 9 | + build: |
| 10 | + name: Create Release |
| 11 | + runs-on: ubuntu-latest |
| 12 | + |
| 13 | + steps: |
| 14 | + - name: Checkout |
| 15 | + uses: actions/checkout@v4 |
| 16 | + |
| 17 | + - name: Build |
| 18 | + id: build |
| 19 | + uses: gocom/action-textpattern-package-plugin@master |
| 20 | + |
| 21 | + - name: Changelog |
| 22 | + id: changelog |
| 23 | + run: | |
| 24 | + echo "contents<<CHANGELOGEOF" >> $GITHUB_OUTPUT |
| 25 | + sed -e '1,/h2. Changelog/d' README.textile | sed -e '1,/h3./d' -e '/h3./,$d' | sed 's/@/`/g' >> $GITHUB_OUTPUT |
| 26 | + echo "CHANGELOGEOF" >> $GITHUB_OUTPUT |
| 27 | +
|
| 28 | + - name: Create Release |
| 29 | + id: create_release |
| 30 | + uses: shogo82148/actions-create-release@v1 |
| 31 | + with: |
| 32 | + body: ${{ steps.changelog.outputs.contents }} |
| 33 | + |
| 34 | + - name: Upload Compressed Plugin Installer |
| 35 | + uses: shogo82148/actions-upload-release-asset@v1 |
| 36 | + with: |
| 37 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 38 | + asset_path: ${{ github.workspace }}/${{ steps.build.outputs.compressed }} |
| 39 | + asset_name: ${{ steps.build.outputs.name }}_v${{ steps.build.outputs.version }}_zip.txt |
| 40 | + asset_content_type: text/plain |
| 41 | + |
| 42 | + - name: Upload Uncompressed Plugin Installer |
| 43 | + uses: shogo82148/actions-upload-release-asset@v1 |
| 44 | + with: |
| 45 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 46 | + asset_path: ${{ github.workspace }}/${{ steps.build.outputs.uncompressed }} |
| 47 | + asset_name: ${{ steps.build.outputs.name }}_v${{ steps.build.outputs.version }}.txt |
| 48 | + asset_content_type: text/plain |
0 commit comments