mirror of
https://github.com/adoyle0/thaw.git
synced 2025-03-13 05:59:49 -04:00
pref: remove workflow
This commit is contained in:
parent
254d63e435
commit
64b4e64835
2 changed files with 0 additions and 80 deletions
35
.github/workflows/get-thaw-changed.yml
vendored
35
.github/workflows/get-thaw-changed.yml
vendored
|
@ -1,35 +0,0 @@
|
||||||
name: Get Thaw Changed Call
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
outputs:
|
|
||||||
thaw_changed:
|
|
||||||
description: "Thaw Changed"
|
|
||||||
value: ${{ jobs.create.outputs.thaw_changed }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
create:
|
|
||||||
name: Detect Source Change
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
thaw_changed: ${{ steps.set-source-changed.outputs.thaw_changed }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Get source files that changed
|
|
||||||
id: changed-source
|
|
||||||
uses: tj-actions/changed-files@v36
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
demo
|
|
||||||
src
|
|
||||||
Cargo.toml
|
|
||||||
|
|
||||||
- name: List source files that changed
|
|
||||||
run: echo '${{ steps.changed-source.outputs.all_changed_files }}'
|
|
||||||
|
|
||||||
- name: Set thaw_changed
|
|
||||||
id: set-source-changed
|
|
||||||
run: |
|
|
||||||
echo "thaw_changed=${{ steps.changed-source.outputs.any_changed }}" >> "$GITHUB_OUTPUT"
|
|
45
.github/workflows/gh-pages.yml
vendored
45
.github/workflows/gh-pages.yml
vendored
|
@ -1,45 +0,0 @@
|
||||||
name: Build gh-pages
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 23 * * *"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
get-thaw-changed:
|
|
||||||
uses: ./.github/workflows/get-thaw-changed.yml
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [get-thaw-changed]
|
|
||||||
if: needs.get-thaw-changed.outputs.thaw_changed == 'true'
|
|
||||||
permissions:
|
|
||||||
contents: write # To push a branch
|
|
||||||
pull-requests: write # To create a PR from that branch
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Setup Rust
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: stable
|
|
||||||
target: wasm32-unknown-unknown
|
|
||||||
override: true
|
|
||||||
- name: Install Trunk
|
|
||||||
uses: jetli/trunk-action@v0.4.0
|
|
||||||
with:
|
|
||||||
version: "latest"
|
|
||||||
- name: Deploy GitHub Pages
|
|
||||||
run: |
|
|
||||||
cd demo
|
|
||||||
trunk build --release
|
|
||||||
git worktree add gh-pages
|
|
||||||
git config user.name "Deploy demo from CI"
|
|
||||||
git config user.email ""
|
|
||||||
cd gh-pages
|
|
||||||
# Delete the ref to avoid keeping history.
|
|
||||||
git update-ref -d refs/heads/gh-pages
|
|
||||||
rm -rf *
|
|
||||||
mv ../dist/* .
|
|
||||||
git add .
|
|
||||||
git commit -m "Deploy demo $GITHUB_SHA to gh-pages"
|
|
||||||
git push --force --set-upstream origin gh-pages
|
|
Loading…
Add table
Reference in a new issue