-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8de9a1
commit c8cb2b3
Showing
18 changed files
with
486 additions
and
1,325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
types: [labeled,closed] | ||
|
||
jobs: | ||
|
||
tag: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') | ||
|
@@ -17,22 +18,66 @@ jobs: | |
version_regex: 'v([0-9]+\.[0-9]+\.[0-9]+)' | ||
version_tag_prefix: 'v' | ||
|
||
release-artifact: | ||
|
||
publish-crates: | ||
needs: tag | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Quick Setup | ||
uses: ./.github/workflows/quick-setup | ||
- name: Build artifact | ||
run: cargo build --release -p mdbook-aquascope -p aquascope_front | ||
- name: Package artifact | ||
run: tar -czf aquascope-x86_64-unknown-linux-gnu.tar.gz mdbook-aquascope cargo-aquascope aquascope-driver | ||
working-directory: target/release | ||
- name: Release artifact | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ github.event.pull_request.title }} | ||
files: | | ||
target/release/aquascope-x86_64-unknown-linux-gnu.tar.gz | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
- uses: DeterminateSystems/flake-checker-action@main | ||
|
||
- name: Install aquascope and mdbook-aquascope | ||
run: nix develop --command ci-install | ||
|
||
- name: Publish Crates | ||
run: nix develop --command ci-publish-crates ${{ secrets.CRATES_IO_TOKEN }} | ||
|
||
|
||
# TODO factor frontend updates into a separate action | ||
# update-frontend: | ||
# needs: publish-crates | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: DeterminateSystems/nix-installer-action@main | ||
# - uses: DeterminateSystems/magic-nix-cache-action@main | ||
# - uses: DeterminateSystems/flake-checker-action@main | ||
|
||
# - name: Build Docs and Standalone | ||
# run: nix develop .#minimal --command ci-build-pages | ||
|
||
# - uses: JamesIves/[email protected] | ||
# with: | ||
# branch: gh-pages | ||
# folder: ./frontend/packages/aquascope-standalone/dist | ||
# clean: true | ||
# clean-exclude: dev | ||
|
||
|
||
release-artifact: | ||
needs: publish-crates | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') | ||
steps: | ||
- name: Release Artifact | ||
run: echo "TODO explicitly not releasing an artifact" | ||
# - uses: actions/checkout@v3 | ||
# - uses: DeterminateSystems/nix-installer-action@main | ||
# - uses: DeterminateSystems/magic-nix-cache-action@main | ||
# - uses: DeterminateSystems/flake-checker-action@main | ||
|
||
# - name: Install aquascope and mdbook-aquascope | ||
# run: nix develop --command ci-build | ||
|
||
# - name: Package artifact | ||
# run: tar -czf aquascope-x86_64-unknown-linux-gnu.tar.gz mdbook-aquascope cargo-aquascope aquascope-driver | ||
# working-directory: target/release | ||
|
||
# - name: Release artifact | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# tag_name: ${{ github.event.pull_request.title }} | ||
# files: | | ||
# target/release/aquascope-x86_64-unknown-linux-gnu.tar.gz |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# TODO: automatically publish WASM port (somehow...) | ||
name: standalone | ||
|
||
# on: | ||
# pull_request: | ||
# branches: [main] | ||
# types: [labeled,closed] | ||
|
||
# jobs: | ||
# update-frontend: | ||
# needs: publish-crates | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: DeterminateSystems/nix-installer-action@main | ||
# - uses: DeterminateSystems/magic-nix-cache-action@main | ||
# - uses: DeterminateSystems/flake-checker-action@main | ||
|
||
# - name: Build Docs and Standalone | ||
# run: nix develop .#minimal --command ci-build-pages | ||
|
||
# - uses: JamesIves/[email protected] | ||
# with: | ||
# branch: gh-pages | ||
# folder: ./frontend/packages/aquascope-standalone/dist | ||
# clean: true | ||
# clean-exclude: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,7 @@ sample-book/ | |
# Rust things | ||
target/ | ||
debug/ | ||
|
||
# Nix things | ||
.direnv/ | ||
.envrc |
Oops, something went wrong.