Skip to content

Commit

Permalink
build: fix if conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
frugan-dev committed Jun 18, 2024
1 parent c0e0ff0 commit dbb1fa3
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,31 @@ jobs:
PLUGIN_NAME=${{ github.event.repository.name }} \
PLUGIN_VERSION=${{ github.ref_name }}
#https://github.com/orgs/community/discussions/25641#discussioncomment-3248571
- name: Run Makefile 'deploy' task
if: startsWith(github.ref, 'refs/tags/v') && github.ref_type == 'tag' && ${{ env.IS_LAST_JOB }}
if: |
startsWith(github.ref, 'refs/tags/v')
&& github.ref_type == 'tag'
&& env.IS_LAST_JOB
run: |
echo ${{ github.ref }}
echo ${{ github.ref_type }}
make install deploy \
MODE=production \
MARIADB_TAG=$MARIADB_TAG \
WORDPRESS_TAG=$WORDPRESS_TAG \
NODE_TAG=$NODE_TAG \
PLUGIN_NAME=${{ github.event.repository.name }} \
PLUGIN_VERSION=${{ github.ref_name }} \
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
#- name: Save artifact
# if: startsWith(github.ref, 'refs/tags/v') && github.ref_type == 'tag' && ${{ env.IS_LAST_JOB }}
# uses: actions/upload-artifact@v4
# with:
# name: build-output
# path: dist/${{ github.event.repository.name }}-${{ github.ref_name }}.zip
- name: Save artifact
if: |
startsWith(github.ref, 'refs/tags/v')
&& github.ref_type == 'tag'
&& env.IS_LAST_JOB
uses: actions/upload-artifact@v4
with:
name: build-output
path: dist/${{ github.event.repository.name }}-${{ github.ref_name }}.zip

- name: Run Makefile 'down' task
run: make down

0 comments on commit dbb1fa3

Please sign in to comment.