Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
vrde committed Sep 10, 2024
1 parent 9adeacf commit a82785d
Show file tree
Hide file tree
Showing 12 changed files with 104 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/deploy.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
artifacts
Binary file added chapters/000/doge.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added chapters/000/ok.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions chapters/000/quest.md
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>
1 change: 1 addition & 0 deletions chapters/000/solution
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2903
1 change: 1 addition & 0 deletions chapters/001/quest.md
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.
1 change: 1 addition & 0 deletions chapters/001/solution
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
~~~bl4ck w4t3r g04t~~~
1 change: 1 addition & 0 deletions chapters/002/quest.md
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.
1 change: 1 addition & 0 deletions chapters/002/solution
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
antani
2 changes: 2 additions & 0 deletions chapters/keys.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
key:foo,🫣
key:bar,🫠
5 changes: 5 additions & 0 deletions thc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Treasure Hunt Challenge",
"thcAddress": "0x487837e29e770B7D569a91848b6dD36eA1Ed6c04",
"chainId": 11155111
}

0 comments on commit a82785d

Please sign in to comment.