Skip to content

Commit

Permalink
v0.0.33
Browse files Browse the repository at this point in the history
  • Loading branch information
dmca-glasgow committed Aug 23, 2024
1 parent 0021250 commit ea59abf
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 100 deletions.
198 changes: 99 additions & 99 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "isos",
"version": "0.0.32"
"version": "0.0.33"
},
"tauri": {
"cli": {
Expand Down

0 comments on commit ea59abf

Please sign in to comment.