diff --git a/.github/workflows/publish-tags.yml b/.github/workflows/publish-tags.yml index 171fbef3..671d02d1 100644 --- a/.github/workflows/publish-tags.yml +++ b/.github/workflows/publish-tags.yml @@ -10,35 +10,9 @@ concurrency: cancel-in-progress: true jobs: - release_upload: - name: Upload additional files to release - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v4 - with: - submodules: 'true' - - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: compose.yml - tag: ${{ github.ref }} - - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: neodb.env.example - tag: ${{ github.ref }} - - name: snapshot takahe code - run: zip -r neodb-takahe.zip neodb-takahe -x '.git' - - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: neodb-takahe.zip - tag: ${{ github.ref }} - build_and_push_image: name: build image and push to Docker Hub - # if: github.repository_owner == 'neodb-social' + if: github.repository_owner == 'neodb-social' runs-on: ubuntu-latest steps: - name: Check out the repo @@ -60,6 +34,27 @@ jobs: echo '__version__ = "'$REF_NAME'"' > boofilsic/__init__.py echo '__version__ = "'$REF_NAME'"' > neodb-takahe/takahe/neodb.py + - uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: compose.yml + tag: ${{ github.ref }} + + - uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: neodb.env.example + tag: ${{ github.ref }} + + - name: snapshot code + run: zip -r /tmp/neodb-${{ github.ref }}.zip . -x '.git' + + - uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: /tmp/neodb-${{ github.ref }}.zip + tag: ${{ github.ref }} + - name: Send Discord notification uses: appleboy/discord-action@master with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3fcbe54f..03006090 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: build_and_push_image: name: build image and push to Docker Hub if: ${{ github.event.workflow_run.conclusion == 'success' }} - # if: github.repository_owner == 'neodb-social' + if: github.repository_owner == 'neodb-social' runs-on: ubuntu-latest steps: - name: Check out the repo