Configure git safe directory in CI container to fix dubious ownership… #7
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: release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| container: clojure:lein | |
| steps: | |
| - name: Install git | |
| run: | | |
| apt-get update && apt-get install -y git | |
| git config --global --add safe.directory '*' | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: release | |
| env: | |
| CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | |
| CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} | |
| run: lein with-profile deploy release |