Merge pull request #64 from felipeggrs/patch-1 #106
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: Process YAML files and create release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: write | |
| jobs: | |
| processs-yaml: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: pip install pyyaml | |
| - name: Build addons.json | |
| run: python .github/build_addons.py | |
| - name: Get the short commit SHA | |
| id: get_commit_sha | |
| run: echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
| - name: Create a release | |
| id: create_release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: addons.json | |
| tag_name: ${{ env.sha }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |