Skip to content

fix paths pyodide (#70) (#71) #13

fix paths pyodide (#70) (#71)

fix paths pyodide (#70) (#71) #13

name: "Release Pages Custom Url"
on:
workflow_dispatch:
inputs:
siteUrl:
description: 'Website Base Url'
required: true
default: 'https://TALCo-Team.github.io/TALightDesktop/'
type: string
push:
branches:
- release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: yarn
# - name: Run tests
# run: npm run test:headless
- name: Build
run: yarn run build --base-href ${{ inputs.siteUrl }}
- name: Archive build
if: success()
uses: actions/upload-artifact@v1
with:
name: deploy_dist.zip
path: dist
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: TALIGHT_${{ github.sha }}
release_name: TALIGHT ${{ inputs.siteUrl }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: deploy_dist.zip
asset_path: dist
asset_content_type: application/zip
# - name: Deploy
# if: success()
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: dist/talight-desktop
# enable_jekyll: true