diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-11-02 15:46:06 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-11-02 15:46:06 +0100 |
commit | b81eccf2b6c424b98fa13da8e62ba576fdad22cc (patch) | |
tree | f57a3cefa078949ce7b684acd659e29ef8a323d9 /.github/workflows/cd.yml | |
parent | f53f21ac32edb5e8467d6b98eff2407042f1d227 (diff) | |
parent | c0747191ef1750213cf7d0742d7c01908b8defe3 (diff) |
Merge pull request #142 from org-roam/feat/cd
feat(cd): create proper cd
Diffstat (limited to '.github/workflows/cd.yml')
-rw-r--r-- | .github/workflows/cd.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..6416ae4 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,45 @@ +--- +# File : cd.yml + +name: 'cd' +on: + push: + branches: [main] +defaults: + run: + shell: 'bash' +jobs: + lint-test-build: + name: '[build]' + runs-on: 'ubuntu-latest' + steps: + - name: '[checkout] ${{ github.repository }} project' + uses: 'actions/checkout@v2' + with: + repository: '${{ github.repository }}' + - name: '[lint]' + run: | + echo TBA some linting + - name: '[test]' + run: | + echo TBA some testing + - name: '[build]' + run: | + git config --global url."https://github.com/".insteadOf ssh://[email protected]/ + git config --global url."https://".insteadOf git:// + git config --global url."https://".insteadOf ssh:// + yarn + yarn build + - name: '[commit changes]' + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git add . + git commit -m "chore: build" -a + - name: '[push changes]' + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} +... +# End of ci.yml |