Update workflow

This commit is contained in:
Nabeel Shahzad 2025-01-13 13:24:02 -06:00
parent e29adf51f9
commit 832b4f8bfa
No known key found for this signature in database
2 changed files with 9 additions and 14 deletions

View File

@ -122,7 +122,7 @@ jobs:
name: 'Create release package'
needs: [build]
runs-on: ubuntu-latest
if: github.repository == 'phpvms/phpvms' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/'))
if: github.repository == 'phpvms/phpvms' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev')
steps:
- name: Checkout
uses: actions/checkout@v4

View File

@ -5,7 +5,7 @@ on:
types: [ published ]
jobs:
build:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
@ -21,11 +21,6 @@ jobs:
with:
versionSpec: '6.0.x'
# - name: Install GitReleaseManager
# uses: ./gitreleasemanager/setup
# with:
# versionSpec: '0.18.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v3.1.1
@ -118,13 +113,6 @@ jobs:
# repository: actions
# milestone: "v${{ steps.gitversion.outputs.majorMinorPatch }}"
- name: Discord notification
uses: Ilshidur/action-discord@0.3.2
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: ${{ steps.discord.outputs.discord_msg }}
# Push to Docker
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
@ -160,3 +148,10 @@ jobs:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
- name: Discord notification
uses: Ilshidur/action-discord@0.3.2
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: ${{ steps.discord.outputs.discord_msg }}