Add GitHub Action to prebuild completion script #5
This file contains hidden or 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: prebuild | |
| on: {push: {branches: [master]}} | |
| defaults: | |
| run: | |
| working-directory: repo | |
| jobs: | |
| prebuild: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: { path: repo } | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: '14' | |
| - name: install | |
| run: | | |
| curl https://sh.rustup.rs -sSf | sh -s -- -y | |
| cargo install --git https://github.com/adaszko/complgen --tag v0.4.0 complgen | |
| - name: build | |
| run: | | |
| make | |
| - name: push | |
| run: | | |
| git init -b prebuilt | |
| git config user.name 'GitHub Actions' | |
| git config user.email '224759579+quasipoint@users.noreply.github.com' | |
| git add dspace.bash dspace.zsh dspace.zsh | |
| git commit -m 'Make prebuilt scripts ready for deploy' | |
| git push --force 'https://quasipoint:${{ github.token }}@github.com/${{ github.repository }}' prebuilt | |