Update workflow
This commit is contained in:
parent
e29adf51f9
commit
832b4f8bfa
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user