From ea59abf2117b1eb2e4a75b85c29ceda2db98c38b Mon Sep 17 00:00:00 2001 From: David McArthur Date: Fri, 23 Aug 2024 15:38:48 +0100 Subject: [PATCH] v0.0.33 --- .github/workflows/publish.yml | 198 +++++++++++++++++----------------- src-tauri/tauri.conf.json | 2 +- 2 files changed, 100 insertions(+), 100 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 587604b..f029437 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,108 +6,108 @@ on: - main jobs: - # version-check: - # runs-on: ubuntu-20.04 - # outputs: - # version: ${{ steps.check-for-version-change.outputs.version}} - # has-version-change: ${{ steps.check-for-version-change.outputs.has-version-change }} - # steps: - # - uses: actions/checkout@v4 - # - uses: actions/setup-node@v4 - # with: - # node-version: lts/* - # - id: check-for-version-change - # uses: ./.github/actions/version-check - # env: - # GH_TOKEN: ${{ github.token }} + version-check: + runs-on: ubuntu-20.04 + outputs: + version: ${{ steps.check-for-version-change.outputs.version}} + has-version-change: ${{ steps.check-for-version-change.outputs.has-version-change }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - id: check-for-version-change + uses: ./.github/actions/version-check + env: + GH_TOKEN: ${{ github.token }} - # create-release: - # needs: version-check - # if: needs.version-check.outputs.has-version-change == 'true' - # runs-on: ubuntu-latest - # outputs: - # release-id: ${{ steps.create-release.outputs.result }} - # steps: - # - uses: actions/checkout@v4 - # - uses: actions/setup-node@v4 - # with: - # node-version: lts/* - # - id: create-release - # uses: actions/github-script@v7 - # with: - # script: | - # const { data } = await github.rest.repos.createRelease({ - # owner: context.repo.owner, - # repo: context.repo.repo, - # tag_name: `v${{ needs.version-check.outputs.version }}`, - # name: `ISOS v${{ needs.version-check.outputs.version }}`, - # draft: true, - # prerelease: false, - # generate_release_notes: true - # }) - # return data.id + create-release: + needs: version-check + if: needs.version-check.outputs.has-version-change == 'true' + runs-on: ubuntu-latest + outputs: + release-id: ${{ steps.create-release.outputs.result }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - id: create-release + uses: actions/github-script@v7 + with: + script: | + const { data } = await github.rest.repos.createRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + tag_name: `v${{ needs.version-check.outputs.version }}`, + name: `ISOS v${{ needs.version-check.outputs.version }}`, + draft: true, + prerelease: false, + generate_release_notes: true + }) + return data.id - # build-tauri: - # needs: create-release - # permissions: - # contents: write - # strategy: - # fail-fast: false - # matrix: - # include: - # - platform: 'macos-latest' - # args: '--target aarch64-apple-darwin' - # - platform: 'macos-latest' - # args: '--target x86_64-apple-darwin' - # - platform: 'ubuntu-20.04' - # args: '' - # - platform: 'windows-latest' - # args: '' - # runs-on: ${{ matrix.platform }} - # steps: - # - uses: actions/checkout@v4 - # - uses: actions/setup-node@v4 - # with: - # node-version: lts/* - # - name: install Rust stable - # uses: dtolnay/rust-toolchain@stable - # with: - # targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} - # - name: install dependencies (ubuntu only) - # if: matrix.platform == 'ubuntu-20.04' - # run: | - # sudo apt-get update - # sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf - # - name: install frontend dependencies - # run: npm ci - # - uses: tauri-apps/tauri-action@v0 - # id: build-tauri-app - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} - # 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: - # releaseId: ${{ needs.create-release.outputs.release-id }} - # args: ${{ matrix.args }} + build-tauri: + needs: create-release + permissions: + contents: write + strategy: + fail-fast: false + matrix: + include: + - platform: 'macos-latest' + args: '--target aarch64-apple-darwin' + - platform: 'macos-latest' + args: '--target x86_64-apple-darwin' + - platform: 'ubuntu-20.04' + args: '' + - platform: 'windows-latest' + args: '' + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - name: install Rust stable + uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-20.04' + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf + - name: install frontend dependencies + run: npm ci + - uses: tauri-apps/tauri-action@v0 + id: build-tauri-app + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} + 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: + releaseId: ${{ needs.create-release.outputs.release-id }} + args: ${{ matrix.args }} - # post-release: - # needs: [create-release, build-tauri] - # runs-on: ubuntu-20.04 - # steps: - # - uses: actions/checkout@v4 - # - uses: actions/setup-node@v4 - # with: - # node-version: lts/* - # - uses: ./.github/actions/post-release - # env: - # GH_TOKEN: ${{ github.token }} - # ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} - # RELEASE_ID: ${{ needs.create-release.outputs.release-id }} + post-release: + needs: [create-release, build-tauri] + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - uses: ./.github/actions/post-release + env: + GH_TOKEN: ${{ github.token }} + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + RELEASE_ID: ${{ needs.create-release.outputs.release-id }} publish-docs: # needs: version-check diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 6143949..dc8defb 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "isos", - "version": "0.0.32" + "version": "0.0.33" }, "tauri": { "cli": {