-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add g4vercel * rewrite * add setup-go * add setup node
- Loading branch information
Showing
6 changed files
with
417 additions
and
193 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 |
---|---|---|
@@ -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 }} |
Oops, something went wrong.