Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates BitMart link #1130

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 37 additions & 42 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,50 @@
name: Build and Deploy Next.js App

on:
push:
pull_request:
branches:
- master
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Update apt repos
run: sudo apt-get update

- name: Set the correct Node version using nvm
shell: bash -l {0}
run: nvm install

- name: Install yarn
shell: bash -l {0}
run: curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && sudo apt-get update && sudo apt-get install yarn

- name: use yarn to install dependencies
shell: bash -l {0}
run: yarn install

- name: Git Setup Global Config
shell: bash -l {0}
run: export GITHUB_USER=justinvforvendetta && echo "GITHUB_USER=$GITHUB_USER" >> $GITHUB_ENV && echo "GITHUB_TOKEN=${{ secrets.JUSTINVFORVENDETTA }}" >> $GITHUB_ENV && git config --global user.email "[email protected]" && git config --global user.name $GITHUB_USER

- name: yarn install and deploy
shell: bash -l {0}
run: export GITHUB_USER=justinvforvendetta && echo "GITHUB_USER=$GITHUB_USER" >> $GITHUB_ENV && echo "GITHUB_TOKEN=${{ secrets.JUSTINVFORVENDETTA }}" >> $GITHUB_ENV && git config --global user.email "[email protected]" && git config --global user.name justinvforvendetta && git remote set-url origin https://$GITHUB_USER:${{ secrets.JUSTINVFORVENDETTA }}@github.com/vergecurrency/vergecurrency.com.git && npm install -g gh-pages --save-dev && gh-pages -t true -m 'Github Actions automated build' -d docs && yarn run deploy

- name: Upload site
uses: actions/upload-artifact@v3
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
name: vergecurrency.com
path: |
./src/*.js
node-version: '18'

- name: Clear npm cache
run: npm cache clean --force

- name: Install Dependencies
run: npm install --force

- name: Build Next.js App
run: npm run build

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git checkout --orphan gh-pages
git --work-tree . add --all
git --work-tree . commit -m "Deploy to GitHub Pages"
git push origin HEAD:gh-pages --force
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ after_success:
- yarn run deploy
before_install:
- openssl aes-256-cbc -K $encrypted_50aa2a38b2c5_key -iv $encrypted_50aa2a38b2c5_iv
-in deploy_website.enc -out deploy_website -d
-in deploy_key.enc -out deploy_key -d
- openssl aes-256-cbc -K $encrypted_dfdcfd5172af_key -iv $encrypted_dfdcfd5172af_iv
-in deploy_key.enc -out /tmp/deploy_key -d || true
- eval "$(ssh-agent -s)"
Expand Down
14 changes: 8 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ const paths = {
dist: 'docs',
};

gulp.task('serve', () => (
gulp.src(paths.dist)
.pipe(webserver({
function serve() {
return gulp.src(paths.dist).pipe(
webserver({
port: 3001,
}))
));
})
);
}

gulp.task('default', ['serve']);
exports.serve = serve;
exports.default = gulp.series(serve);
8 changes: 7 additions & 1 deletion lists/exchanges.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
"img": "../static/img/exchanges/bitmart.svg",
"title": "BitMart",
"link": "bitmart.com",
"url": "https://www.bitmart.com"
"url": "https://www.bitmart.com/register-referral/en?r=Vkvp3T"
},
{
"img": "../static/img/exchanges/coinw.svg",
"title": "CoinW",
"link": "coinw.com",
"url": "https://www.coinw.com/h5/invitePublicity?r=256518"
},
{
"img": "../static/img/exchanges/swapswop.png",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"gh-pages": "^1.1.0",
"glob": "^7.1.4",
"glob-all": "^3.1.0",
"gulp": "^3.9.1",
"gulp": "4.0.2",
"gulp-webserver": "^0.9.1",
"i18next": "^10.3.0",
"i18next-browser-languagedetector": "^2.1.0",
Expand Down
68 changes: 68 additions & 0 deletions static/img/exchanges/coinw.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading