-
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.
- Loading branch information
Showing
12 changed files
with
104 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Deploy game | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: "Build" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "pnpm" | ||
|
||
- name: Install THC (as in Treasure Hunt CLI) | ||
run: pnpm install -g @dist0rtion/thc | ||
|
||
- name: Checkout game | ||
uses: actions/checkout@v4 | ||
with: | ||
path: game | ||
|
||
- name: Checkout THC (as in Treasure Hunt Code) | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: social-dist0rtion-protocol/thc | ||
ref: dev | ||
path: thc | ||
|
||
- name: Build game | ||
run: thc build game | ||
|
||
- name: Provide dapp | ||
run: thc provide-dapp game thc/web | ||
|
||
- name: Install THC (as in Treasure Hunt Code) dependencies | ||
working-directory: thc/web | ||
run: pnpm install | ||
|
||
- name: Build | ||
working-directory: thc/web | ||
run: pnpm build | ||
|
||
- name: Load SSH Key | ||
run: | | ||
mkdir -p ~/.ssh | ||
echo "${{ secrets.DEPLOYER_SSH_KEY }}" > ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
ssh-keyscan github.com >> ~/.ssh/known_hosts | ||
- name: Deploy to Target Repo | ||
run: | | ||
git clone [email protected]:${{ secrets.TARGET_REPO }}.git public | ||
cp -R dist/* public/ | ||
cd public | ||
git config --global user.name 'github-actions[bot]' | ||
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | ||
git add . | ||
git commit -m "Bump" | ||
git push origin main |
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,2 @@ | ||
.env | ||
artifacts |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,19 @@ | ||
# Prequel | ||
|
||
Times are dark, like the clouds covering the sky. The only escape route to this forsaken reality is the comfort of a pill. The Cyber Doge is asking for your password. | ||
|
||
![](./doge.jpeg) | ||
|
||
<details> | ||
<summary>Side Quest: antani</summary> | ||
Something small enough to escape casual notice. | ||
</details> | ||
|
||
<details> | ||
<summary>Side Quest: Something</summary> | ||
|
||
**Something small enough to escape casual notice.** | ||
|
||
![](./ok.gif) | ||
|
||
</details> |
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 @@ | ||
2903 |
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 @@ | ||
It's the year 2903. You are in a dark place. The air is warm. The music is pumping loud from the speakers. Here you find the first puzzle. |
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 @@ | ||
~~~bl4ck w4t3r g04t~~~ |
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 @@ | ||
You've found the Black Water Goat. You feel two hands grabbing your arms, but you don't see them. A man is screaming. You feel a needle piercing your skin. The VR headset is finally removed from your face. You fall asleep. Forever. Congrats you finished the game. |
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 @@ | ||
antani |
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,2 @@ | ||
key:foo,🫣 | ||
key:bar,🫠 |
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,5 @@ | ||
{ | ||
"name": "Treasure Hunt Challenge", | ||
"thcAddress": "0x487837e29e770B7D569a91848b6dD36eA1Ed6c04", | ||
"chainId": 11155111 | ||
} |