Skip to content

Regenerate readme files #1280

Regenerate readme files

Regenerate readme files #1280

name: 'Development Build'
on:
push:
branches:
- develop
jobs:
build-dev-release:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
platform: [self-hosted]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 22.16
cache: npm
- name: Initialize the project
run: npm run ci
- name: Lint Angular project
run: npm run lint
- name: Set app version to DEV version
run: npm run set-version DEV
- name: Set flavour to DEV
run: npm run set-flavour DEV
- name: Set build id
run: npm run set-build-id
- name: Ensure dist directory exists
run: mkdir -p dist/oyasumivr
- name: Run Clippy (shared)
run: cd src-shared-rust; cargo clippy -- -D warnings
- name: Run Clippy (elevated-sidecar)
run: cd src-elevated-sidecar; cargo clippy -- -D warnings
- name: Run Clippy (core)
run: cd src-core; cargo clippy -- -D warnings
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
validation_level: warn
validation_depth: 1
version: Unreleased
path: ./CHANGELOG.md
- name: Build and release OyasumiVR development build
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
releaseId: 102092545
tagName: oyasumi-vDEV
releaseDraft: false
prerelease: true
includeDebug: true
includeRelease: false
includeUpdaterJson: true
- name: Update release data
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log("Deleting existing oyasumi-vDEV tag...");
try {
await github.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/oyasumi-vDEV"
})
console.log("Deleted existing oyasumi-vDEV tag!");
} catch (e) {
console.log("The oyasumi-vDEV tag doesn't exist yet: " + e)
}
console.log("Recreating oyasumi-vDEV tag on current commit...");
try {
await github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/oyasumi-vDEV",
sha: context.sha
})
console.log("Recreated oyasumi-vDEV tag!");
} catch (e) {
console.log("Could not recreate oyasumi-vDEV tag: " + e)
}
console.log("Updating release data...");
try {
await github.request('PATCH /repos/Raphiiko/OyasumiVR/releases/102092545', {
tag_name: 'oyasumi-vDEV',
name: 'OyasumiVR Development Build',
body: `${{ steps.changelog_reader.outputs.changes }}`,
draft: false,
prerelease: true
})
console.log("Updated release data!");
} catch (e) {
console.log("Could not update release data: " + e)
}
- name: Sleep for 5 seconds
run: Start-Sleep -s 5
shell: powershell
- name: Publish release if needed
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
console.log("Publishing release...");
try {
await github.request('PATCH /repos/Raphiiko/OyasumiVR/releases/102092545', {
draft: false
})
console.log("Published release!");
} catch (e) {
console.log("Could not publish release: " + e)
}
- name: Update the update manifest
uses: Raphiiko/actions-deploy-gist@main
with:
token: ${{ secrets.GH_TOKEN_GIST }}
gist_id: 8af3d105fe9a59db304cca2cfea216c8
file_path: latest.json
gist_file_name: 'oyasumi_update_manifest_dev.json'
gist_description: OyasumiVR Update Manifest [Development Channel]