Skip to content

Commit

Permalink
Fix deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiken committed Nov 9, 2023
1 parent 679a731 commit fcf9a0e
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main # Set a branch name to trigger deployment
paths:
- "index.html"
pull_request:

jobs:
Expand All @@ -16,25 +14,19 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout source repository
- uses: actions/checkout@v3

- name: Checkout deployment repository
uses: actions/checkout@v3
with:
repository: mikiken/mikiken.net
path: compiler_log/
token: ${{ secrets.ACTIONS_DEPLOY_KEY }}

- name: Copy file
run: |
cp index.html mikiken.net/compiler_log/index.html
- name: Push changes
run: |
cp index.html mikiken.net/compiler_log/index.html
cd mikiken.net
git config user.name mikiken
git config user.email [email protected]
git add compiler_log/index.html
git commit -m "Update `compiler_log/index.html via github-actions` "
git commit -m "Update `compiler_log/index.html` via github-actions"
git push origin main

0 comments on commit fcf9a0e

Please sign in to comment.