Skip to content

Commit

Permalink
ci: github action 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonju0110 committed Feb 25, 2024
1 parent c2fc44d commit 5444cd1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ jobs:

- name: Check prettier
run: yarn check:prettier

- name: Build
run: yarn build
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: DEPLOY

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20.3.1
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install node packages
run: yarn

- name: deploy
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global url.https://${{ secrets.PAT }}@github.com/.insteadOf https://github.com/
yarn deploy-gh-prefix-paths
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
{
resolve: `gatsby-plugin-gtag`,
options: {
trackingId: process.env.GA_ID,
trackingId: "G-N2Q5X5JPZS",
head: false,
anonymize: true,
},
Expand Down

0 comments on commit 5444cd1

Please sign in to comment.