| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- name: Trigger site rebuild
- on:
- push:
- branches:
- - 'master'
- jobs:
- build:
- runs-on: ubuntu-latest
- if: "!contains(github.event.head_commit.message, 'skip-ci')"
- steps: [
- { name: 'Checkout', uses: actions/checkout@v4, with: { fetch-depth: 1 } },
- { name: 'Install Python', uses: actions/setup-python@v4, with: { python-version: 3.10.5, architecture: x64 } },
- {
- name: 'Create archives',
- run: 'python create_archives.py'
- },
- {
- name: "Create tag",
- run: 'git tag v${{ github.sha }}'
- },
- {
- name: "Push to tag",
- run: 'git push origin v${{ github.sha }}'
- },
- {
- name: 'Release',
- uses: softprops/action-gh-release@v2,
- with: { files: "*.zip", make_latest: true, tag_name: 'v${{ github.sha }}' }
- },
- {
- name: 'Repository dispatch',
- uses: defold/[email protected],
- with: {
- repo: 'defold/defold.github.io',
- token: '${{ secrets.SERVICES_GITHUB_TOKEN }}',
- user: '[email protected]',
- action: 'examples'
- }
- }
- ]
|