mirror of
https://github.com/stronk-dev/RandomChad.git
synced 2025-07-05 10:35:08 +02:00
Attempt first deploy
This commit is contained in:
parent
b2005ee2a4
commit
b0db030b40
12
.firebaserc
12
.firebaserc
@ -1,5 +1,17 @@
|
|||||||
{
|
{
|
||||||
"projects": {
|
"projects": {
|
||||||
"default": "rocketeer-nft"
|
"default": "rocketeer-nft"
|
||||||
|
},
|
||||||
|
"targets": {
|
||||||
|
"rocketeer-nft": {
|
||||||
|
"hosting": {
|
||||||
|
"website": [
|
||||||
|
"rocketeer"
|
||||||
|
],
|
||||||
|
"minter": [
|
||||||
|
"rocketeer-nft"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
65
.github/workflows/deploy-minter.yaml
vendored
Normal file
65
.github/workflows/deploy-minter.yaml
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
name: Deploy Frontend on push/merge
|
||||||
|
|
||||||
|
# Only trigger on PR/push and only for frontend files
|
||||||
|
on:
|
||||||
|
# Trigger on PR close
|
||||||
|
# pull_request:
|
||||||
|
# types: [ closed ]
|
||||||
|
# paths:
|
||||||
|
# - 'src/**'
|
||||||
|
# - 'modules/**'
|
||||||
|
# branches:
|
||||||
|
# - master
|
||||||
|
|
||||||
|
# Trigger on push to master (edge case, local merge)
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- '*.json'
|
||||||
|
- '*.js'
|
||||||
|
- 'minter/**'
|
||||||
|
- '.github/workflows/deploy-minter.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Build the frontend giles
|
||||||
|
build:
|
||||||
|
name: Compile frontend
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Get the repo files from current commit
|
||||||
|
- name: Cloning repository
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Read .nvmrc
|
||||||
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
||||||
|
id: nvm
|
||||||
|
working-directory: minter
|
||||||
|
|
||||||
|
- name: Set Node.js (.nvmrc)
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: "${{ steps.nvm.outputs.NVMRC }}"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm i
|
||||||
|
working-directory: minter
|
||||||
|
|
||||||
|
- name: test if all links work
|
||||||
|
run: npm test
|
||||||
|
working-directory: minter
|
||||||
|
|
||||||
|
- name: Build website files
|
||||||
|
env:
|
||||||
|
NODE_ENV: production
|
||||||
|
run: npm run build
|
||||||
|
working-directory: minter
|
||||||
|
|
||||||
|
- name: Deploy to Firebase
|
||||||
|
uses: w9jds/firebase-action@master
|
||||||
|
with:
|
||||||
|
args: deploy --only hosting:minter
|
||||||
|
env:
|
||||||
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
65
.github/workflows/deploy-website.yml
vendored
Normal file
65
.github/workflows/deploy-website.yml
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
name: Deploy Frontend on push/merge
|
||||||
|
|
||||||
|
# Only trigger on PR/push and only for frontend files
|
||||||
|
on:
|
||||||
|
# Trigger on PR close
|
||||||
|
# pull_request:
|
||||||
|
# types: [ closed ]
|
||||||
|
# paths:
|
||||||
|
# - 'src/**'
|
||||||
|
# - 'modules/**'
|
||||||
|
# branches:
|
||||||
|
# - master
|
||||||
|
|
||||||
|
# Trigger on push to master (edge case, local merge)
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- '*.json'
|
||||||
|
- '*.js'
|
||||||
|
- 'website/**'
|
||||||
|
- '.github/workflows/deploy-website.yml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Build the frontend giles
|
||||||
|
build:
|
||||||
|
name: Compile frontend
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Get the repo files from current commit
|
||||||
|
- name: Cloning repository
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Read .nvmrc
|
||||||
|
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
|
||||||
|
id: nvm
|
||||||
|
working-directory: website
|
||||||
|
|
||||||
|
- name: Set Node.js (.nvmrc)
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: "${{ steps.nvm.outputs.NVMRC }}"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm i
|
||||||
|
working-directory: website
|
||||||
|
|
||||||
|
- name: test if all links work
|
||||||
|
run: npm test
|
||||||
|
working-directory: website
|
||||||
|
|
||||||
|
- name: Build website files
|
||||||
|
env:
|
||||||
|
NODE_ENV: production
|
||||||
|
run: npm run build
|
||||||
|
working-directory: website
|
||||||
|
|
||||||
|
- name: Deploy to Firebase
|
||||||
|
uses: w9jds/firebase-action@master
|
||||||
|
with:
|
||||||
|
args: deploy --only hosting:website
|
||||||
|
env:
|
||||||
|
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
@ -8,14 +8,16 @@
|
|||||||
"npm --prefix \"$RESOURCE_DIR\" run lint"
|
"npm --prefix \"$RESOURCE_DIR\" run lint"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"hosting": {
|
"hosting": [
|
||||||
"public": "docs",
|
{
|
||||||
"ignore": [
|
"target": "website",
|
||||||
"firebase.json",
|
"public": "website/docs"
|
||||||
"**/.*",
|
},
|
||||||
"**/node_modules/**"
|
{
|
||||||
]
|
"target": "minter",
|
||||||
},
|
"public": "minter/docs"
|
||||||
|
}
|
||||||
|
],
|
||||||
"storage": {
|
"storage": {
|
||||||
"rules": "storage.rules"
|
"rules": "storage.rules"
|
||||||
}
|
}
|
||||||
|
@ -103,6 +103,8 @@ main
|
|||||||
|
|
||||||
#ctabuttons
|
#ctabuttons
|
||||||
margin-top: 4rem
|
margin-top: 4rem
|
||||||
|
width: 100%
|
||||||
|
text-align: center
|
||||||
a
|
a
|
||||||
padding: 1rem
|
padding: 1rem
|
||||||
text-decoration: none
|
text-decoration: none
|
||||||
|
@ -24,22 +24,24 @@ html( lang=content.lang )
|
|||||||
main
|
main
|
||||||
section#hero
|
section#hero
|
||||||
h1 Rocketeer NFT
|
h1 Rocketeer NFT
|
||||||
h2 10,000,000 possible combinations, 0 price.
|
//- h2 10,000,000 possible combinations, 0 price.
|
||||||
a( target='_blank' href='' ) Mint now
|
//- a( target='_blank' href='' ) Mint now
|
||||||
|
p Launching Soon™️
|
||||||
+rimg.stretch( src=site.system.url+'/assets/mike-kiev-Opzk_hvwO9Q-unsplash.jpg' )
|
+rimg.stretch( src=site.system.url+'/assets/mike-kiev-Opzk_hvwO9Q-unsplash.jpg' )
|
||||||
section#usps
|
section#usps
|
||||||
div.usp
|
div.usp
|
||||||
p 🕶
|
p 🕶
|
||||||
p 5 visors in 20 possible colors
|
p Unique visors & helmets
|
||||||
div.usp
|
div.usp
|
||||||
p 👔
|
p 👔
|
||||||
p 9 suits in 10 colors
|
p Unique suits
|
||||||
div.usp
|
div.usp
|
||||||
p 🏔
|
p 🏔
|
||||||
p 20 backdrops in 5 colors
|
p Unique backdrops
|
||||||
div#ctabuttons
|
div#ctabuttons
|
||||||
a( href='/' ) Mint now
|
//- a( href='/' ) Mint now
|
||||||
a( href='/' ) View on Opensea
|
//- a( href='/' ) View on Opensea
|
||||||
|
p Launching Soon™️
|
||||||
|
|
||||||
section#credits
|
section#credits
|
||||||
h1 Acknowledgements
|
h1 Acknowledgements
|
||||||
@ -48,7 +50,8 @@ html( lang=content.lang )
|
|||||||
|
|
||||||
section#cta
|
section#cta
|
||||||
+cimg.circle#compressed( size=200 src=site.system.url+'/assets/adam-miller-dBaz0xhCkPY-unsplash-cropped.jpg' )
|
+cimg.circle#compressed( size=200 src=site.system.url+'/assets/adam-miller-dBaz0xhCkPY-unsplash-cropped.jpg' )
|
||||||
a( href='/' ) Mint now
|
//- a( href='/' ) Mint now
|
||||||
|
p Launching Soon™️
|
||||||
|
|
||||||
section#about
|
section#about
|
||||||
h1 About this project
|
h1 About this project
|
||||||
|
Loading…
x
Reference in New Issue
Block a user