Skip to content

Commit

Permalink
ci: new actions
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 28, 2023
1 parent d0e612e commit d64ce30
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 42 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/deploy_github_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
name: Create Release
name: macOS Release
runs-on: macos-latest
steps:
- name: Set env
Expand Down Expand Up @@ -39,23 +39,12 @@ jobs:
draft: true
prerelease: false
- name: Upload Release Asset DMG
id: upload-release-asset-dmg
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build-recipes/dist/DCKit_${{ env.RELEASE_VERSION }}.dmg
asset_name: DCKit_${{ env.RELEASE_VERSION }}.dmg
asset_content_type: application/zip
- name: Upload Release Asset PGK
id: upload-release-asset-pkg
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: "marvinpinto/action-automatic-releases@latest"
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build-recipes/dist/DCKit.pkg
asset_name: DCKit.pkg
asset_content_type: application/zip
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true
title: "DCKit ${{ env.RELEASE_VERSION }}"
files: |
./build-recipes/dist/*.dmg
./build-recipes/dist/*.pkg
30 changes: 8 additions & 22 deletions .github/workflows/deploy_github_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
name: Create Release
name: Windows Release
runs-on: windows-latest
steps:
- name: Set env
Expand All @@ -30,26 +30,12 @@ jobs:
# Run the binary (the most simple test)
dist\\DCKit\\DCKit.exe --version
python win_make_iss.py
ISCC.exe /Q /Q win_dckit.iss
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
ISCC.exe /Q win_dckit.iss
- uses: "marvinpinto/action-automatic-releases@latest"
with:
tag_name: ${{ github.ref }}
release_name: DCKit ${{ github.ref }}
body: |
![](https://img.shields.io/github/downloads/DC-analysis/DCKit/${{ env.RELEASE_VERSION }}/total.svg)
draft: true
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
- name: Upload Release Asset EXE
id: upload-release-asset-exe
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing its ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build-recipes/Output/*
asset_content_type: application/zip
draft: true
title: "DCKit ${{ env.RELEASE_VERSION }}"
files: |
./build-recipes/Output/*.exe

0 comments on commit d64ce30

Please sign in to comment.