Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
caxanga334 committed Dec 19, 2022
1 parent 94f3f9b commit 924ba39
Showing 1 changed file with 28 additions and 32 deletions.
60 changes: 28 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ name: Compile Plugin

on:
push:
branches: master
tags: '*'
branches: [ master ]
tags: [ '*' ]
pull_request:
branches: master

branches: [ master ]

jobs:
build:
Expand Down Expand Up @@ -108,33 +107,30 @@ jobs:
create_release:
name: Upload Release
runs-on: ubuntu-latest
needs: [ build ]
if: startsWith(github.ref, 'refs/tags/')
strategy:
fail-fast: false
needs: [ build ]

steps:
- name: Retreive Release Package From Cache 1.11
uses: actions/[email protected]
id: cache2
with:
path: |
build/*.zip
key: cvredux-${{ github.ref_name }}-1.11.x

- name: Retreive Release Package From Cache 1.12
uses: actions/[email protected]
id: cache3
with:
path: |
build/*.zip
key: cvredux-${{ github.ref_name }}-1.12.x

# Retrive the cached files from the previous jobs
- name: Retreive Release Package From Cache 1.11
uses: actions/[email protected]
id: cache2
with:
path: |
build/*.zip
key: cvredux-${{ github.ref_name }}-1.11.x

# Retrive the cached files from the previous jobs
- name: Retreive Release Package From Cache 1.12
uses: actions/[email protected]
id: cache3
with:
path: |
build/*.zip
key: cvredux-${{ github.ref_name }}-1.12.x

- name: Create Release
uses: softprops/[email protected]
with:
name: "Custom Votes Redux Modified ${{ github.ref_name }}"
generate_release_notes: true
files: |
build/*.zip
- name: Create Release
uses: softprops/[email protected]
with:
name: "Custom Votes Redux Modified ${{ github.ref_name }}"
generate_release_notes: true
files: |
build/*.zip

0 comments on commit 924ba39

Please sign in to comment.