-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Little Human <[email protected]>
- Loading branch information
Little Human
committed
Sep 11, 2022
1 parent
d8574c2
commit dbe705b
Showing
1 changed file
with
15 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
--- | ||
name: π Release | ||
name: "π Release" | ||
|
||
on: | ||
# manual trigger | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
bump_version: | ||
name: π¦ Bump Version | ||
name: π Bump Version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
new_tag: ${{ steps.github_tag_action.outputs.new_tag }} | ||
changelog: ${{ steps.github_tag_action.outputs.changelog }} | ||
steps: | ||
- name: π§βπ» Checkout | ||
- name: β€΅οΈ Check out code from GitHub | ||
uses: actions/checkout@v3 | ||
|
||
- name: π¦ Bump version and push tag | ||
|
@@ -24,29 +24,29 @@ jobs: | |
release_branches: .* | ||
|
||
create_release: | ||
name: π Create Release | ||
name: π Create Release | ||
runs-on: ubuntu-latest | ||
needs: bump_version | ||
if: ${{ needs.bump_version.outputs.new_tag != null }} | ||
steps: | ||
- name: π§βπ» Checkout | ||
- name: β€΅οΈ Check out code from GitHub | ||
uses: actions/checkout@v3 | ||
|
||
- name: π» Set up node | ||
- name: π¦οΈ Set up node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: π¦ Install dependencies | ||
- name: ποΈ Install dependencies | ||
run: yarn install --immutable --immutable-cache | ||
|
||
- name: π· Build the app | ||
- name: ποΈ Build the app | ||
run: yarn run build | ||
|
||
- name: π· Export SSG | ||
- name: ποΈ Export SSG | ||
run: yarn run export | ||
|
||
- name: π Upload to Swarm | ||
- name: π Upload to Swarm | ||
uses: ethersphere/swarm-actions/upload-dir@latest | ||
id: swarm-upload | ||
with: | ||
|
@@ -56,7 +56,7 @@ jobs: | |
timeout: 60000 | ||
deferred: false | ||
|
||
- name: π¦ Update Swarm feed | ||
- name: π Update Swarm feed | ||
uses: ethersphere/swarm-actions/write-feed@latest | ||
id: swarm-feed | ||
with: | ||
|
@@ -65,7 +65,7 @@ jobs: | |
topic: kongkow/soon | ||
signer: ${{ secrets.SIGNER }} | ||
|
||
- name: π Upload to Web3 | ||
- name: π Upload to Web3 | ||
uses: 10xHuman/add-to-web3@main | ||
id: web3 | ||
with: | ||
|
@@ -75,13 +75,13 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: π¦ Collect Web3 CID's | ||
- name: ποΈ Collect Web3 CID's | ||
uses: mathiasvr/[email protected] | ||
id: web3-cid | ||
with: | ||
run: yarn cid ${{ steps.web3.outputs.cid }} | ||
|
||
- name: π¦ Collect Swarm CID's | ||
- name: ποΈ Collect Swarm CID's | ||
uses: ethersphere/swarm-actions/reference-to-cid@v0 | ||
id: swarm-cid | ||
with: | ||
|
@@ -95,15 +95,7 @@ jobs: | |
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }} | ||
run: npx dnslink-cloudflare --record _dnslink --domain kongkowitpku.xyz --link /ipfs/${{ steps.web3.outputs.cid }} | ||
|
||
- name: β‘ Update Unstoppable Domains | ||
uses: aquiladev/[email protected] | ||
with: | ||
mnemonic: ${{ secrets.MNEMONIC }} | ||
rpc: ${{ secrets.RPC }} | ||
name: kongkowitpku.blockchain | ||
contentHash: ${{ steps.web3.outputs.cid }} | ||
|
||
- name: π Create GitHub Release | ||
- name: π¬ Create GitHub Release | ||
id: create_release | ||
uses: actions/[email protected] | ||
env: | ||
|
@@ -120,7 +112,6 @@ jobs: | |
- [`${{ steps.web3.outputs.cid }}`.ipfs.w3s.link](https://${{ steps.web3.outputs.cid }}.ipfs.w3s.link) | ||
- [`${{ steps.web3.outputs.cid }}`.ipfs.dweb.link](https://${{ steps.web3.outputs.cid }}.ipfs.dweb.link) | ||
- [`${{ steps.web3.outputs.cid }}`.ipfs.cf-ipfs.com](https://${{ steps.web3.outputs.cid }}.ipfs.cf-ipfs.com) | ||
- **Unstoppable Domains**: [`kongkowitpku.blockchain`](https://kongkowitpku.blockchain) | ||
--- | ||
### Swarm deployment | ||
- **Upload ref**: `${{ steps.swarm-upload.outputs.reference }}` | ||
|