2021-12-12 18:47:41 +00:00
|
|
|
name: Build and deploy
|
2021-12-12 18:42:19 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-01-12 18:53:00 +00:00
|
|
|
branches: [master]
|
2021-12-12 18:42:19 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-wasm:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
working_directory: "./src"
|
|
|
|
steps:
|
2024-01-12 18:53:00 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Go
|
2024-11-08 22:21:25 +00:00
|
|
|
uses: actions/setup-go@v5
|
2024-01-12 18:53:00 +00:00
|
|
|
with:
|
|
|
|
go-version: 1.21
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build -v -o main.wasm ./...
|
|
|
|
working-directory: ${{env.working_directory}}
|
|
|
|
env:
|
|
|
|
GOOS: js
|
|
|
|
GOARCH: wasm
|
|
|
|
|
|
|
|
- name: Upload wasm file
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: wasm
|
|
|
|
path: ${{env.working_directory}}/main.wasm
|
|
|
|
|
2021-12-12 18:42:19 +00:00
|
|
|
build-react:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
working_directory: "./client"
|
|
|
|
steps:
|
2024-01-12 18:53:00 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup Node.js environment
|
Update actions/setup-node action to v4 (#56)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [actions/setup-node](https://github.com/actions/setup-node) | action | major | `v2.5.2` -> `v4.1.0` |
---
### Release Notes
<details>
<summary>actions/setup-node (actions/setup-node)</summary>
### [`v4.1.0`](https://github.com/actions/setup-node/releases/tag/v4.1.0)
[Compare Source](https://github.com/actions/setup-node/compare/v4.0.4...v4.1.0)
#### What's Changed
- Resolve High Security Alerts by upgrading Dependencies by [@​aparnajyothi-y](https://github.com/aparnajyothi-y) in https://github.com/actions/setup-node/pull/1132
- Upgrade IA Publish by [@​Jcambass](https://github.com/Jcambass) in https://github.com/actions/setup-node/pull/1134
- Revise `isGhes` logic by [@​jww3](https://github.com/jww3) in https://github.com/actions/setup-node/pull/1148
- Add architecture to cache key by [@​pengx17](https://github.com/pengx17) in https://github.com/actions/setup-node/pull/843
This addresses issues with caching by adding the architecture (arch) to the cache key, ensuring that cache keys are accurate to prevent conflicts.
Note: This change may break previous cache keys as they will no longer be compatible with the new format.
#### New Contributors
- [@​jww3](https://github.com/jww3) made their first contribution in https://github.com/actions/setup-node/pull/1148
- [@​pengx17](https://github.com/pengx17) made their first contribution in https://github.com/actions/setup-node/pull/843
**Full Changelog**: https://github.com/actions/setup-node/compare/v4...v4.1.0
### [`v4.0.4`](https://github.com/actions/setup-node/releases/tag/v4.0.4)
[Compare Source](https://github.com/actions/setup-node/compare/v4.0.3...v4.0.4)
#### What's Changed
- Add workflow file for publishing releases to immutable action package by [@​Jcambass](https://github.com/Jcambass) in https://github.com/actions/setup-node/pull/1125
- Enhance Windows ARM64 Setup and Update micromatch Dependency by [@​priyagupta108](https://github.com/priyagupta108) in https://github.com/actions/setup-node/pull/1126
##### Documentation changes:
- Documentation update in the README file by [@​suyashgaonkar](https://github.com/suyashgaonkar) in https://github.com/actions/setup-node/pull/1106
- Correct invalid 'lts' version string reference by [@​fulldecent](https://github.com/fulldecent) in https://github.com/actions/setup-node/pull/1124
#### New Contributors
- [@​suyashgaonkar](https://github.com/suyashgaonkar) made their first contribution in https://github.com/actions/setup-node/pull/1106
- [@​priyagupta108](https://github.com/priyagupta108) made their first contribution in https://github.com/actions/setup-node/pull/1126
- [@​Jcambass](https://github.com/Jcambass) made their first contribution in https://github.com/actions/setup-node/pull/1125
- [@​fulldecent](https://github.com/fulldecent) made their first contribution in https://github.com/actions/setup-node/pull/1124
**Full Changelog**: https://github.com/actions/setup-node/compare/v4...v4.0.4
### [`v4.0.3`](https://github.com/actions/setup-node/releases/tag/v4.0.3)
[Compare Source](https://github.com/actions/setup-node/compare/v4.0.2...v4.0.3)
#### What's Changed
##### Bug fixes:
- Fix macos latest check failures by [@​HarithaVattikuti](https://github.com/HarithaVattikuti) in https://github.com/actions/setup-node/pull/1041
##### Documentation changes:
- Documentation update to update default Node version to 20 by [@​bengreeley](https://github.com/bengreeley) in https://github.com/actions/setup-node/pull/949
##### Dependency updates:
- Bump undici from 5.26.5 to 5.28.3 by [@​dependabot](https://github.com/dependabot) in https://github.com/actions/setup-node/pull/965
- Bump braces from 3.0.2 to 3.0.3 and other dependency updates by [@​dependabot](https://github.com/dependabot) in https://github.com/actions/setup-node/pull/1087
#### New Contributors
- [@​bengreeley](https://github.com/bengreeley) made their first contribution in https://github.com/actions/setup-node/pull/949
- [@​HarithaVattikuti](https://github.com/HarithaVattikuti) made their first contribution in https://github.com/actions/setup-node/pull/1041
**Full Changelog**: https://github.com/actions/setup-node/compare/v4...v4.0.3
### [`v4.0.2`](https://github.com/actions/setup-node/releases/tag/v4.0.2)
[Compare Source](https://github.com/actions/setup-node/compare/v4.0.1...v4.0.2)
#### What's Changed
- Add support for `volta.extends` by [@​ThisIsManta](https://github.com/ThisIsManta) in https://github.com/actions/setup-node/pull/921
- Add support for arm64 Windows by [@​dmitry-shibanov](https://github.com/dmitry-shibanov) in https://github.com/actions/setup-node/pull/927
#### New Contributors
- [@​ThisIsManta](https://github.com/ThisIsManta) made their first contribution in https://github.com/actions/setup-node/pull/921
**Full Changelog**: https://github.com/actions/setup-node/compare/v4.0.1...v4.0.2
### [`v4.0.1`](https://github.com/actions/setup-node/releases/tag/v4.0.1)
[Compare Source](https://github.com/actions/setup-node/compare/v4.0.0...v4.0.1)
#### What's Changed
- Ignore engines in Yarn 1 e2e-cache tests by [@​trivikr](https://github.com/trivikr) in https://github.com/actions/setup-node/pull/882
- Update setup-node references in the README.md file to setup-node@v4 by [@​jwetzell](https://github.com/jwetzell) in https://github.com/actions/setup-node/pull/884
- Update reusable workflows to use Node.js v20 by [@​MaksimZhukov](https://github.com/MaksimZhukov) in https://github.com/actions/setup-node/pull/889
- Add fix for cache to resolve slow post action step by [@​aparnajyothi-y](https://github.com/aparnajyothi-y) in https://github.com/actions/setup-node/pull/917
- Fix README.md by [@​takayamaki](https://github.com/takayamaki) in https://github.com/actions/setup-node/pull/898
- Add `package.json` to `node-version-file` list of examples. by [@​TWiStErRob](https://github.com/TWiStErRob) in https://github.com/actions/setup-node/pull/879
- Fix node-version-file interprets entire package.json as a version by [@​NullVoxPopuli](https://github.com/NullVoxPopuli) in https://github.com/actions/setup-node/pull/865
#### New Contributors
- [@​trivikr](https://github.com/trivikr) made their first contribution in https://github.com/actions/setup-node/pull/882
- [@​jwetzell](https://github.com/jwetzell) made their first contribution in https://github.com/actions/setup-node/pull/884
- [@​aparnajyothi-y](https://github.com/aparnajyothi-y) made their first contribution in https://github.com/actions/setup-node/pull/917
- [@​takayamaki](https://github.com/takayamaki) made their first contribution in https://github.com/actions/setup-node/pull/898
- [@​TWiStErRob](https://github.com/TWiStErRob) made their first contribution in https://github.com/actions/setup-node/pull/879
- [@​NullVoxPopuli](https://github.com/NullVoxPopuli) made their first contribution in https://github.com/actions/setup-node/pull/865
**Full Changelog**: https://github.com/actions/setup-node/compare/v4...v4.0.1
### [`v4.0.0`](https://github.com/actions/setup-node/releases/tag/v4.0.0)
[Compare Source](https://github.com/actions/setup-node/compare/v3.8.2...v4.0.0)
#### What's Changed
In scope of this release we changed version of node runtime for action from node16 to node20 and updated dependencies in https://github.com/actions/setup-node/pull/866
Besides, release contains such changes as:
- Upgrade actions/checkout to v4 by [@​gmembre-zenika](https://github.com/gmembre-zenika) in https://github.com/actions/setup-node/pull/868
- Update actions/checkout for documentation and yaml by [@​dmitry-shibanov](https://github.com/dmitry-shibanov) in https://github.com/actions/setup-node/pull/876
#### New Contributors
- [@​gmembre-zenika](https://github.com/gmembre-zenika) made their first contribution in https://github.com/actions/setup-node/pull/868
**Full Changelog**: https://github.com/actions/setup-node/compare/v3...v4.0.0
### [`v3.8.2`](https://github.com/actions/setup-node/releases/tag/v3.8.2)
[Compare Source](https://github.com/actions/setup-node/compare/v3.8.1...v3.8.2)
#### What's Changed
- Update semver by [@​dmitry-shibanov](https://github.com/dmitry-shibanov) in https://github.com/actions/setup-node/pull/861
- Update temp directory creation by [@​nikolai-laevskii](https://github.com/nikolai-laevskii) in https://github.com/actions/setup-node/pull/859
- Bump [@​babel/traverse](https://github.com/babel/traverse) from 7.15.4 to 7.23.2 by [@​dependabot](https://github.com/dependabot) in https://github.com/actions/setup-node/pull/870
- Add notice about binaries not being updated yet by [@​nikolai-laevskii](https://github.com/nikolai-laevskii) in https://github.com/actions/setup-node/pull/872
- Update toolkit cache and core by [@​dmitry-shibanov](https://github.com/dmitry-shibanov) and [@​seongwon-privatenote](https://github.com/seongwon-privatenote) in https://github.com/actions/setup-node/pull/875
**Full Changelog**: https://github.com/actions/setup-node/compare/v3...v3.8.2
### [`v3.8.1`](https://github.com/actions/setup-node/releases/tag/v3.8.1)
[Compare Source](https://github.com/actions/setup-node/compare/v3.8.0...v3.8.1)
#### What's Changed
In scope of this release, the filter was removed within the cache-save step by [@​dmitry-shibanov](https://github.com/dmitry-shibanov) in https://github.com/actions/setup-node/pull/831. It is filtered and checked in the toolkit/cache library.
**Full Changelog**: https://github.com/actions/setup-node/compare/v3...v3.8.1
### [`v3.8.0`](https://github.com/actions/setup-node/releases/tag/v3.8.0)
[Compare Source](https://github.com/actions/setup-node/compare/v3.7.0...v3.8.0)
#### What's Changed
##### Bug fixes:
- Add check for existing paths by [@​dmitry-shibanov](https://github.com/dmitry-shibanov) in https://github.com/actions/setup-node/pull/803
- Resolve SymbolicLink by [@​dmitry-shibanov](https://github.com/dmitry-shibanov) in https://github.com/actions/setup-node/pull/809
- Change passing logic for cache input by [@​dmitry-shibanov](https://github.com/dmitry-shibanov) in https://github.com/actions/setup-node/pull/816
- Fix armv7 cache issue by [@​louislam](https://github.com/louislam) in https://github.com/actions/setup-node/pull/794
- Update check-dist workflow name by [@​sinchang](https://github.com/sinchang) in https://github.com/actions/setup-node/pull/710
##### Feature implementations:
- feat: handling the case where "node" is used for tool-versions file. by [@​xytis](https://github.com/xytis) in https://github.com/actions/setup-node/pull/812
##### Documentation changes:
- Refer to semver package name in README.md by [@​olleolleolle](https://github.com/olleolleolle) in https://github.com/actions/setup-node/pull/808
##### Update dependencies:
- Update toolkit cache to fix zstd by [@​dmitry-shibanov](https://github.com/dmitry-shibanov) in https://github.com/actions/setup-node/pull/804
- Bump tough-cookie and [@​azure/ms-rest-js](https://github.com/azure/ms-rest-js) by [@​dependabot](https://github.com/dependabot) in https://github.com/actions/setup-node/pull/802
- Bump semver from 6.1.2 to 6.3.1 by [@​dependabot](https://github.com/dependabot) in https://github.com/actions/setup-node/pull/807
- Bump word-wrap from 1.2.3 to 1.2.4 by [@​dependabot](https://github.com/dependabot) in https://github.com/actions/setup-node/pull/815
#### New Contributors
- [@​olleolleolle](https://github.com/olleolleolle) made their first contribution in https://github.com/actions/setup-node/pull/808
- [@​louislam](https://github.com/louislam) made their first contribution in https://github.com/actions/setup-node/pull/794
- [@​sinchang](https://github.com/sinchang) made their first contribution in https://github.com/actions/setup-node/pull/710
- [@​xytis](https://github.com/xytis) made their first contribution in https://github.com/actions/setup-node/pull/812
**Full Changelog**: https://github.com/actions/setup-node/compare/v3...v3.8.0
### [`v3.7.0`](https://github.com/actions/setup-node/releases/tag/v3.7.0)
[Compare Source](https://github.com/actions/setup-node/compare/v3.6.0...v3.7.0)
#### What's Changed
In scope of this release we added a logic to save an additional cache path for yarn 3 ([related pull request](https://github.com/actions/setup-node/pull/744) and [feature request](https://github.com/actions/setup-node/issues/325)). Moreover, we added functionality to use all the sub directories derived from `cache-dependency-path` input and add detect all dependencies directories to cache (related [pull request](https://github.com/actions/setup-node/pull/735) and [feature request](https://github.com/actions/setup-node/issues/488)).
##### Besides, we made such changes as:
- Replace workflow badge with new badge by [@​jongwooo](https://github.com/jongwooo) in https://github.com/actions/setup-node/pull/653
- Fix a minor typo by [@​phanan](https://github.com/phanan) in https://github.com/actions/setup-node/pull/662
- docs: fix typo in advanced-usage.md by [@​remarkablemark](https://github.com/remarkablemark) in https://github.com/actions/setup-node/pull/697
- bugfix: Don't attempt to use Windows fallbacks on non-Windows OSes by [@​domdomegg](https://github.com/domdomegg) in https://github.com/actions/setup-node/pull/718
- Update to node 18.x by [@​feelepxyz](https://github.com/feelepxyz) in https://github.com/actions/setup-node/pull/751
- Remove implicit dependencies by [@​nikolai-laevskii](https://github.com/nikolai-laevskii) in https://github.com/actions/setup-node/pull/758
- Fix description about ensuring workflow access to private package by [@​x86chi](https://github.com/x86chi) in https://github.com/actions/setup-node/pull/704
#### New Contributors
- [@​jongwooo](https://github.com/jongwooo) made their first contribution in https://github.com/actions/setup-node/pull/653
- [@​phanan](https://github.com/phanan) made their first contribution in https://github.com/actions/setup-node/pull/662
- [@​remarkablemark](https://github.com/remarkablemark) made their first contribution in https://github.com/actions/setup-node/pull/697
- [@​domdomegg](https://github.com/domdomegg) made their first contribution in https://github.com/actions/setup-node/pull/718
- [@​feelepxyz](https://github.com/feelepxyz) made their first contribution in https://github.com/actions/setup-node/pull/751
- [@​nikolai-laevskii](https://github.com/nikolai-laevskii) made their first contribution in https://github.com/actions/setup-node/pull/758
- [@​x86chi](https://github.com/x86chi) made their first contribution in https://github.com/actions/setup-node/pull/704
**Full Changelog**: https://github.com/actions/setup-node/compare/v3...v3.7.0
### [`v3.6.0`](https://github.com/actions/setup-node/releases/tag/v3.6.0): Add Support for Nightly, Canary and RC builds for Node.js
[Compare Source](https://github.com/actions/setup-node/compare/v3.5.1...v3.6.0)
In scope of this release we added support to download nightly, rc (https://github.com/actions/setup-node/pull/611) and canary (https://github.com/actions/setup-node/pull/619) Node.js distributions.
##### For nightly versions:
```yaml
jobs:
build:
runs-on: ubuntu-latest
name: Node sample
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16-nightly'
- run: npm ci
- run: npm test
```
##### For canary versions:
```yaml
jobs:
build:
runs-on: ubuntu-latest
name: Node sample
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16-v8-canary’
- run: npm ci
- run: npm test
```
##### For rc versions:
```yaml
jobs:
build:
runs-on: ubuntu-latest
name: Node sample
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.0.0-rc.1’
- run: npm ci
- run: npm test
```
Note: For more examples please refer to [documentation](https://github.com/actions/setup-node#advanced-usage).
Besides, we added the following changes as:
- Updated minimatch: https://github.com/actions/setup-node/pull/608
- Fixed extra newline character in version output when reading from a file: https://github.com/actions/setup-node/pull/625
- Passed the token input through on GHES: https://github.com/actions/setup-node/pull/595
- Fixed issue with scoped registries are duplicated in npmrc: https://github.com/actions/setup-node/pull/637
### [`v3.5.1`](https://github.com/actions/setup-node/releases/tag/v3.5.1): Update @​actions/core and Print Node, Npm, Yarn versions
[Compare Source](https://github.com/actions/setup-node/compare/v3.5.0...v3.5.1)
In scope of this release we updated [actions/core to 1.10.0](https://github.com/actions/setup-node/pull/587). Moreover, we added logic [to print Nodejs, Npm, Yarn versions](https://github.com/actions/setup-node/pull/368) after installation.
### [`v3.5.0`](https://github.com/actions/setup-node/releases/tag/v3.5.0): Add support for engines.node and Volta
[Compare Source](https://github.com/actions/setup-node/compare/v3.4.1...v3.5.0)
In scope of this release we add support for engines.node. The action will be able to grab the version form package.json#engines.node. https://github.com/actions/setup-node/pull/485. Moreover, we [added support for Volta](https://github.com/actions/setup-node/pull/532)
Besides, we updated [@​actions/core to 1.9.1](https://github.com/actions/setup-node/pull/574) and [@​actions/cache to 3.0.4](https://github.com/actions/setup-node/pull/573)
### [`v3.4.1`](https://github.com/actions/setup-node/releases/tag/v3.4.1): Fix pnpm output and node-version output issues
[Compare Source](https://github.com/actions/setup-node/compare/v3.4.0...v3.4.1)
In scope of this release we fixed bugs related to the pnpm 7.5.1 output issue from `pnpm store path` https://github.com/actions/setup-node/pull/545. Moreover we fixed the issue with falling on node-version output https://github.com/actions/setup-node/pull/540.
### [`v3.4.0`](https://github.com/actions/setup-node/releases/tag/v3.4.0): Add support for asdf format and update actions/cache version to 3.0.0
[Compare Source](https://github.com/actions/setup-node/compare/v3.3.0...v3.4.0)
In scope of this release we updated `actions/cache` package as the new version contains fixes for [caching error handling](https://github.com/actions/setup-node/pull/526). Moreover, we added support for asdf format as Node.js version file https://github.com/actions/setup-node/pull/373. Besides, we introduced new output [node-version](https://github.com/actions/setup-node/pull/534) and added `npm-shrinkwrap.json` to dependency file patterns: https://github.com/actions/setup-node/pull/439
### [`v3.3.0`](https://github.com/actions/setup-node/releases/tag/v3.3.0): Add support for lts/-n aliases
[Compare Source](https://github.com/actions/setup-node/compare/v3.2.0...v3.3.0)
In scope of this release we added support for `lts/-n` aliases, improve logic for `current`, `latest` and `node` aliases to handle them from `toolcache`, update `ncc` package.
##### Support of lts/-n aliases
- Related pull request: https://github.com/actions/setup-node/pull/481
- Related issue: https://github.com/actions/setup-node/issues/26
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/-1
- run: npm ci
- run: npm test
```
##### Minor improvements
- Update zeit/ncc to vercel/ncc: https://github.com/actions/setup-node/pull/476
- Get latest version from cache if exists: https://github.com/actions/setup-node/pull/496
### [`v3.2.0`](https://github.com/actions/setup-node/releases/tag/v3.2.0): Add current, node, latest aliases
[Compare Source](https://github.com/actions/setup-node/compare/v3.1.1...v3.2.0)
In scope of this release we added new aliases to install the latest Node.js version. https://github.com/actions/setup-node/pull/483
```yml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: current
- run: npm ci
- run: npm test
```
### [`v3.1.1`](https://github.com/actions/setup-node/releases/tag/v3.1.1): Update actions/cache version to 2.0.2
[Compare Source](https://github.com/actions/setup-node/compare/v3.1.0...v3.1.1)
In scope of this release we updated `actions/cache` package as the new version contains fixes related to GHES 3.5 (https://github.com/actions/setup-node/pull/460)
### [`v3.1.0`](https://github.com/actions/setup-node/releases/tag/v3.1.0): Add caching support on GHES 3.5
[Compare Source](https://github.com/actions/setup-node/compare/v3.0.0...v3.1.0)
In scope of this release we added [support for caching from GHES 3.5](https://github.com/actions/setup-node/pull/452) and fixed download issue for files > 2GB during restore. Besides, we updated `actions/cache` dependency to 2.0.0 version.
### [`v3.0.0`](https://github.com/actions/setup-node/releases/tag/v3.0.0)
[Compare Source](https://github.com/actions/setup-node/compare/v2.5.2...v3.0.0)
In scope of this release we changed version of the runtime Node.js for the setup-node action and updated package-lock.json file to v2.
##### Breaking Changes
- With the update to Node 16 in https://github.com/actions/setup-node/pull/414, all scripts will now be run with Node 16 rather than Node 12.
- We removed deprecated `version` input (https://github.com/actions/setup-node/pull/424). Please use `node-version` input instead.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS44LjAiLCJ1cGRhdGVkSW5WZXIiOiIzOS44LjAiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIiLCJsYWJlbHMiOltdfQ==-->
Reviewed-on: https://gitea.bruyant.xyz/alexandre/PaletteSwitcher/pulls/56
Co-authored-by: Renovate <renovate@bruyant.xyz>
Co-committed-by: Renovate <renovate@bruyant.xyz>
2024-11-08 22:21:12 +00:00
|
|
|
uses: actions/setup-node@v4.1.0
|
2024-01-12 18:53:00 +00:00
|
|
|
with:
|
|
|
|
node-version-file: .nvmrc
|
|
|
|
|
|
|
|
- name: NPM CI
|
|
|
|
working-directory: ${{env.working_directory}}
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: React build
|
|
|
|
working-directory: ${{env.working_directory}}
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- name: Upload react client
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: react-app
|
|
|
|
path: ${{env.working_directory}}/build
|
|
|
|
|
2021-12-12 18:42:19 +00:00
|
|
|
merge:
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-12 18:43:25 +00:00
|
|
|
needs: [build-wasm, build-react]
|
2021-12-12 18:42:19 +00:00
|
|
|
env:
|
|
|
|
working_directory: "./client"
|
|
|
|
steps:
|
|
|
|
- name: Download React app
|
2024-11-09 13:51:31 +00:00
|
|
|
uses: actions/download-artifact@v4
|
2021-12-12 18:42:19 +00:00
|
|
|
with:
|
|
|
|
name: react-app
|
|
|
|
path: app
|
2024-01-12 18:53:00 +00:00
|
|
|
|
2021-12-12 18:42:19 +00:00
|
|
|
- name: Download WASM program
|
2024-11-09 13:51:31 +00:00
|
|
|
uses: actions/download-artifact@v4
|
2021-12-12 18:42:19 +00:00
|
|
|
with:
|
|
|
|
name: wasm
|
2021-12-12 18:56:16 +00:00
|
|
|
path: app
|
2024-01-12 18:53:00 +00:00
|
|
|
|
2021-12-12 18:42:19 +00:00
|
|
|
- name: Upload react app
|
2024-01-03 12:03:33 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-12-12 18:42:19 +00:00
|
|
|
with:
|
|
|
|
name: react-app-wasm
|
|
|
|
path: app
|
2024-01-12 18:53:00 +00:00
|
|
|
|
|
|
|
pin:
|
|
|
|
name: Pin to cluster node
|
2024-01-12 18:57:15 +00:00
|
|
|
needs: merge
|
2021-12-12 18:42:19 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-01-12 18:53:00 +00:00
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
2021-12-12 18:42:19 +00:00
|
|
|
outputs:
|
2024-01-12 18:53:00 +00:00
|
|
|
cid: ${{ steps.pin.outputs.cid }}
|
2021-12-12 18:42:19 +00:00
|
|
|
steps:
|
2024-11-09 13:51:31 +00:00
|
|
|
- uses: actions/download-artifact@v4
|
2021-12-12 18:42:19 +00:00
|
|
|
with:
|
|
|
|
name: react-app-wasm
|
2024-01-12 18:53:00 +00:00
|
|
|
path: app
|
|
|
|
|
|
|
|
- name: pin
|
|
|
|
id: pin
|
2024-01-13 07:52:30 +00:00
|
|
|
uses: docker://gitea.bruyant.xyz/alexandre/ipfs-node-pin:1.0.1
|
2021-12-12 18:42:19 +00:00
|
|
|
with:
|
2024-01-12 18:53:00 +00:00
|
|
|
ipfs_host: "ipfs-api.ipfs.svc"
|
|
|
|
ipfs_port: "5001"
|
|
|
|
path_to_add: app
|
|
|
|
- name: print CID
|
|
|
|
run: echo ${{ steps.pin.outputs.cid }}
|
2021-12-12 18:42:19 +00:00
|
|
|
|
|
|
|
update-dns:
|
|
|
|
name: Update OVH DNS
|
2024-01-12 18:53:00 +00:00
|
|
|
needs: [pin]
|
2021-12-12 18:42:19 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: OVH alter DNS record
|
|
|
|
uses: CrispyBaguette/ovh-dns-alter-action@v1.1.1
|
|
|
|
with:
|
|
|
|
application-key: ${{ secrets.OVH_APPLICATION_KEY }}
|
|
|
|
application-secret: ${{ secrets.OVH_APPLICATION_SECRET }}
|
|
|
|
consumer-key: ${{ secrets.OVH_CONSUMER_KEY }}
|
|
|
|
dns-zone: bruyant.xyz
|
|
|
|
record-id: 5218627602
|
2024-01-12 18:53:00 +00:00
|
|
|
target: "dnslink=/ipfs/${{ needs.pin.outputs.cid }}"
|
|
|
|
|
2021-12-12 18:42:19 +00:00
|
|
|
- name: OVH refresh DNS zone
|
|
|
|
uses: CrispyBaguette/ovh-dns-refresh-action@v1.0.1
|
|
|
|
with:
|
|
|
|
application-key: ${{ secrets.OVH_APPLICATION_KEY }}
|
|
|
|
application-secret: ${{ secrets.OVH_APPLICATION_SECRET }}
|
|
|
|
consumer-key: ${{ secrets.OVH_CONSUMER_KEY }}
|
|
|
|
dns-zone: bruyant.xyz
|