Skip to content

Commit

Permalink
Tweak actions
Browse files Browse the repository at this point in the history
  • Loading branch information
spartacus04 committed Mar 25, 2024
1 parent fac84ae commit 99ed9f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-tauri.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: 'build-tauri'
name: 'Build Tauri'
# This workflow build a Tauri app for all platforms and upload the binaries as artifacts

on:
push:
branches:
- gh-pages
- dev/generator-rework

jobs:
publish-tauri:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build & publish
name: Build & publish

on:
push:
Expand All @@ -15,11 +15,12 @@ jobs:
- name: Get latest release with tag
id: latestrelease
run: |
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/<OWNER>/<REPO>/releases/latest | jq '.tag_name' | sed 's/\"//g')"
echo "releasetag=$(curl -s https://api.github.com/repos/spartacus04/jext-reborn/releases/latest | jq '.tag_name' | sed 's/\"//g')" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ steps.latestrelease.outputs.releasetag }}
ref: ${{ env.releasetag }}

- name: Set up JDK 17
uses: actions/[email protected]
Expand All @@ -41,7 +42,7 @@ jobs:
- name: Build docs with Gradle
run: ./gradlew dokkaHtml
env:
githubTag: ${{ steps.latestrelease.outputs.releasetag }}
githubTag: ${{ env.releasetag }}

- name: Upload docs
uses: actions/upload-artifact@v2
Expand All @@ -55,7 +56,7 @@ jobs:
- name: Get latest commit hash
id: latestcommit
run: |
echo "::set-output name=commitsha::$(curl -s https://api.github.com/repos/spartacus04/jext-reborn/branches/master | jq -r '.commit.sha' | cut -c1-7)"
echo "commitsha=$(curl -s https://api.github.com/repos/spartacus04/jext-reborn/branches/master | jq -r '.commit.sha' | cut -c1-7)" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -98,6 +99,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
ref: gh-pages

- name: Download stable docs
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 99ed9f9

Please sign in to comment.