Skip to content

Commit

Permalink
GitHub Actions: Experiment with manual artifact uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Apr 9, 2024
1 parent 14ebbcc commit d3f3431
Showing 1 changed file with 35 additions and 12 deletions.
47 changes: 35 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,27 @@ jobs:
settings:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
src: 'target/aarch64-apple-darwin/release/bundle/dmg/reaboot_*_aarch64.dmg'
dest: 'reaboot-arm64.dmg'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: ''
src: 'target/x86_64-apple-darwin/release/bundle/dmg/reaboot_*_x64.dmg'
dest: 'reaboot-x86_64.dmg'
- platform: 'windows-latest'
args: ''
args: '--bundles none'
src: 'target/release/reaboot.exe'
dest: 'reaboot-x64.exe'
- platform: 'ubuntu-20.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: '--bundles deb'
src: 'target/release/bundle/deb/reaboot_*_amd64.deb'
dest: 'reaboot-x86_64.deb'

runs-on: ${{ matrix.settings.platform }}
steps:
- uses: actions/checkout@v4

- name: install dependencies (ubuntu only)
if: matrix.settings.platform == 'ubuntu-22.04' # This must match the platform value defined above.
if: matrix.settings.platform == 'ubuntu-20.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
Expand All @@ -52,7 +60,8 @@ jobs:
working-directory: gui
run: npm install

- uses: tauri-apps/tauri-action@v0
- name: Build
working-directory: gui
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
Expand All @@ -61,11 +70,25 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: npm run tauri build -- ${{ matrix.settings.args }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
projectPath: gui
tagName: v__VERSION__
releaseName: 'v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: true
args: ${{ matrix.settings.args }}
name: ${{ matrix.dest }}
path: ${{ matrix.src }}

# - uses: tauri-apps/tauri-action@v0
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
# APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
# APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
# APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
# with:
# projectPath: gui
# args: ${{ matrix.settings.args }}
# tagName: v__VERSION__
# releaseName: 'v__VERSION__'

0 comments on commit d3f3431

Please sign in to comment.