Skip to content

Commit

Permalink
Merge pull request #39 from dolkensp/feature/two-stage-pipeline
Browse files Browse the repository at this point in the history
Build in two stages
  • Loading branch information
peter-dolkens authored Apr 4, 2021
2 parents dc4501f + 5a198ff commit 2973a24
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
runs-on: ubuntu-latest
if: (github.event_name == 'push')
outputs:
id: ${{ steps.create_release.outputs.id }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v2
Expand All @@ -84,10 +85,10 @@ jobs:
tag_name: v${{ env.UNP4K_VERSION }}
release_name: unp4k Tools for Star Citizen
body: ${{ env.README }}
draft: false
draft: true
prerelease: false

publish:
upload:
needs: release
runs-on: ubuntu-latest
if: (github.event_name == 'push')
Expand All @@ -96,16 +97,16 @@ jobs:
matrix:
artifact: [ unp4k, unp4k-suite, unforge ]
steps:
- name: Load
- name: Load Artifacts
uses: actions/download-artifact@v2
with:
name: ${{ matrix.artifact }}-v${{ env.UNP4K_VERSION }}
path: ${{ matrix.artifact }}

- name: Compress
- name: Compress Artifacts
run: (cd ${{ matrix.artifact }} && zip -r ../${{ matrix.artifact }}.zip .)

- name: Upload
- name: Upload Artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -114,3 +115,15 @@ jobs:
asset_path: ${{ matrix.artifact }}.zip
asset_name: ${{ matrix.artifact }}-v${{ env.UNP4K_VERSION }}.zip
asset_content_type: application/zip

publish:
needs: [ upload, release ]
runs-on: ubuntu-latest
if: (github.event_name == 'push')
steps:
- name: Publish Release
uses: StuYarrow/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
id: ${{ needs.release.outputs.id }}

0 comments on commit 2973a24

Please sign in to comment.