Skip to content

Instantly share code, notes, and snippets.

@paopa
paopa / Markdium-text.txt
Created August 29, 2021 11:50
Markdium-GitHub Actions: concepts and getting started
jobs:
push-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test
run: |
echo "Hello GitHub Actions"
pwd
- name: Set up Python 3.7
@paopa
paopa / Markdium-text.txt
Created August 29, 2021 11:50
Markdium-GitHub Actions: concepts and getting started
- uses: actions/checkout@v2
@paopa
paopa / Markdium-YAML.yaml
Created August 29, 2021 11:50
Markdium-GitHub Actions: concepts and getting started
steps:
- uses: actions/checkout@v2
- run: pwd
working-directory: ./d2
@paopa
paopa / Markdium-text.txt
Created August 29, 2021 11:50
Markdium-GitHub Actions: concepts and getting started
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
@paopa
paopa / Markdium-YAML.yaml
Created August 29, 2021 11:50
Markdium-GitHub Actions: concepts and getting started
jobs:
release-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./d1
@paopa
paopa / Markdium-text.txt
Created August 29, 2021 11:50
Markdium-GitHub Actions: concepts and getting started
jobs:
job1:
job2:
needs: job1
job3:
needs: [job1,job2]
@paopa
paopa / Markdium-text.txt
Created August 29, 2021 11:50
Markdium-GitHub Actions: concepts and getting started
[repo root dir]
└── .github/workforws
├── workflow1.yaml
└── workflow2.yaml
@paopa
paopa / Markdium-text.txt
Created August 29, 2021 11:50
Markdium-GitHub Actions: concepts and getting started
- name: Test
run: |
echo "Hello World!! Hello GitHub Actions"
pwd
@paopa
paopa / Markdium-text.txt
Created August 29, 2021 11:50
Markdium-GitHub Actions: concepts and getting started
name: Push (Testing)
on:
push:
branches: [ main ]