add action #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tool Deployment | |
on: | |
push: | |
branches: | |
- staging | |
- main | |
jobs: | |
test_action_job1: | |
name: test action | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: build | |
run: | | |
make build_linux | |
./bin/tool -h | |
./bin/tool action1 | |
test_action_job2: | |
name: test action | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/staging' && github.event_name == 'push' | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
- name: build | |
run: | | |
make build_linux | |
./bin/tool -h | |
./bin/tool action2 |