Difference between revisions of "GitHub Actions"
From Christoph's Personal Wiki
(Created page with "'''GitHub Actions''' is a service provided by GitHub that allows building continuous integration and continuous deployment (CI/CD) pipelines for testing, releasing, and deploy...") |
(→Basic) |
||
Line 20: | Line 20: | ||
- name: multiline script | - name: multiline script | ||
run: | | run: | | ||
− | + | node -v | |
− | + | npm -v | |
- name: python command | - name: python command | ||
run: | | run: | |
Revision as of 07:40, 1 October 2021
GitHub Actions is a service provided by GitHub that allows building continuous integration and continuous deployment (CI/CD) pipelines for testing, releasing, and deploying software without the use of third-party websites/platforms.
Examples
Basic
$ cat .github/workflows/basic.yaml name: Shell Commands on: [push] jobs: run-shell-commands: runs-on: ubuntu-latest steps: - name: echo a string run: echo "Hello, World!" - name: multiline script run: | node -v npm -v - name: python command run: | import platform print (platform.processor()) shell: python