Skip to content

Commit

Permalink
Rewritten Everything (#2)
Browse files Browse the repository at this point in the history
* add g4vercel

* rewrite

* add setup-go

* add setup node
  • Loading branch information
hawl1 authored May 5, 2024
1 parent 2ed8753 commit 7e10c29
Show file tree
Hide file tree
Showing 6 changed files with 417 additions and 193 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
name: Deploy

on:
push:
branches:
- main

jobs:
deploy:
Deploy-Production:
runs-on: ubuntu-latest

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

- name: Build api
run: go mod tidy; go build -o skill-icons ./api/index.go

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./skill-icons
user_name: ${{ github.actor }}
user_email: ${{ github.actor }}@users.noreply.github.com
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

- uses: actions/setup-go@v5
with:
go-version: '1.18'

- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Install Go Packages
run: go mod tidy
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Add IconsJSON Variable
run: go run build.go
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --token=${{ secrets.VERCEL_TOKEN }}
Loading

0 comments on commit 7e10c29

Please sign in to comment.