Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
KingYes committed Dec 8, 2024
1 parent bb64999 commit f43259d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,21 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.CLOUD_DEVOPS_TOKEN }}

- name: Build Plugin
run: |
npm run package:zip
- name: Preparing envs
run: |
echo "PACKAGE_VERSION=$(cat package.json | jq -r '.version')" >> $GITHUB_ENV
echo "PLUGIN_SLUG=$(cat package.json | jq -r '.name')" >> $GITHUB_ENV
- name: Build Plugin
run: |
npm run package:zip
mv ${{ env.PLUGIN_SLUG }}*.zip ${{ env.PLUGIN_SLUG }}.zip
- name: Archive
uses: actions/upload-artifact@v4
with:
name: ${{ env.PLUGIN_SLUG }}
path: ${{ env.PLUGIN_SLUG }}
path: ${{ env.PLUGIN_SLUG }}.zip
retention-days: 14

- name: Push to Slack on PR merge
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: hello-plus
name: ${{ env.PLUGIN_SLUG }}
- run: ls -lah && pwd
- name: unzip
run: unzip ${{ env.PLUGIN_SLUG }}.zip
Expand Down

0 comments on commit f43259d

Please sign in to comment.