링크
[url] GitHub Actions 설명서
변군이글루
2025. 1. 9. 14:19
반응형
GitHub Actions 설명서
GitHub Docs : GitHub Actions 설명서
GitHub Actions 이해
워크플로
vim .github/workflows/deploy.yml
name: Github Actions 실행
on:
push:
branches:
- main
jobs:
example-job:
runs-on: ubuntu-latest
steps:
- name: Hello World
run: echo "Hello World"
- name: 여러 명령어 실행
run: |
echo "command #1"
echo "command #2"
비밀 저장
vim .github/workflows/deploy.yml
name: Github Actions 실행
on:
push:
branches:
- main
jobs:
example-job:
runs-on: ubuntu-latest
steps:
- name: Github Actions 변수
run: |
echo "GITHUB_SHA: $GITHUB_SHA"
echo "GITHUB_REPOSITORY: $GITHUB_REPOSITORY"
- name: 사용자 지정 변수(비밀 정보 저장)
env:
MY_NAME: ${{ secrets.MY_NAME }}
run: |
echo "MY_NAME: $MY_NAME"
728x90
반응형