Skip to content

Commit 3c8b19d

Browse files
authored
Merge pull request #9 from rtCamp/actions-fix
Actions fix
2 parents 5579ccb + eafd89b commit 3c8b19d

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

.github/workflows/phpcs_on_pull_request.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Install Dependencies
11-
run: |
12-
sudo apt-get update
13-
sudo apt-get install -y git sudo
14-
1510
- uses: actions/checkout@v4
1611
with:
1712
ref: ${{ github.event.pull_request.head.sha }}

.github/workflows/release_on_tag.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v4
1212

13-
- name: Install system dependencies
14-
shell: bash
15-
run: |
16-
sudo apt-get update
17-
sudo apt-get install -y zip unzip composer
18-
1913
- name: Set up Node
2014
uses: actions/setup-node@v4
2115
with:
@@ -60,14 +54,15 @@ jobs:
6054
echo "=== Plugin zip contents ==="
6155
unzip -l $GITHUB_WORKSPACE/onedesign.zip
6256
63-
- name: Upload Release Artifact
57+
- name: Upload Release Artifact with gh CLI
6458
if: startsWith(github.ref, 'refs/tags/dry') == false && github.ref != 'refs/heads/develop'
65-
uses: softprops/[email protected]
66-
with:
67-
files: |
68-
${{ steps.create-zip.outputs.zip-path }}
69-
token: '${{ github.token }}'
70-
tag_name: ${{ github.ref_name }}
71-
draft: true
72-
generate_release_notes: true
73-
name: OneDesign ${{ github.ref_name }}
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
run: |
62+
gh release view "${{ github.ref_name }}" || \
63+
gh release create "${{ github.ref_name }}" \
64+
--title "OneDesign ${{ github.ref_name }}" \
65+
--generate-notes \
66+
--draft
67+
# Upload the artifact
68+
gh release upload "${{ github.ref_name }}" "${{ steps.create-zip.outputs.zip-path }}" --clobber

0 commit comments

Comments
 (0)