Skip to content

Commit

Permalink
ci: replace integration step with post-deploy push
Browse files Browse the repository at this point in the history
  • Loading branch information
Harjot1Singh committed Jan 6, 2023
1 parent 4990f99 commit f3d5031
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 29 deletions.
1 change: 0 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
push:
branches:
- main
- integration

jobs:
lint:
Expand Down
77 changes: 49 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ jobs:
name: viewer-${{ matrix.context }}
path: /tmp/viewer-${{ matrix.context }}.tar

# To be re-evaluated - integration branch seems overkill
integrate:
runs-on: ubuntu-20.04
needs: build
Expand All @@ -88,35 +89,16 @@ jobs:
user: Shabad OS Bot
email: [email protected]

- name: Download workspace
uses: actions/download-artifact@v2
with:
name: release-workspace
path: ${{ github.workspace }}

- uses: shabados/actions/integrate-commits@release/v2
if: inputs.prerelease != true
with:
github_token: ${{ secrets.GH_BOT_TOKEN }}

publish-github:
runs-on: ubuntu-20.04
needs: [prepare, integrate]
steps:
- uses: shabados/actions/setup-git-identity@release/v2
with:
user: Shabad OS Bot
email: [email protected]
# - name: Download workspace
# uses: actions/download-artifact@v2
# with:
# name: release-workspace
# path: ${{ github.workspace }}

- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_BOT_TOKEN }}

- uses: shabados/actions/publish-github@release/v2
with:
github_token: ${{ secrets.GH_BOT_TOKEN }}
release_version: ${{ needs.prepare.outputs.release-version }}
# - uses: shabados/actions/integrate-commits@release/v2
# if: inputs.prerelease != true
# with:
# github_token: ${{ secrets.GH_BOT_TOKEN }}

publish:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -186,3 +168,42 @@ jobs:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
FRONTEND_IMAGE: ghcr.io/shabados/viewer-frontend:v${{ needs.prepare.outputs.release-version }}
BACKEND_IMAGE: ghcr.io/shabados/viewer-backend:v${{ needs.prepare.outputs.release-version }}

publish-github:
runs-on: ubuntu-20.04
needs: [prepare, deploy]
steps:
- uses: shabados/actions/setup-git-identity@release/v2
with:
user: Shabad OS Bot
email: [email protected]

- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_BOT_TOKEN }}

- uses: shabados/actions/publish-github@release/v2
if: inputs.prerelease != true
with:
github_token: ${{ secrets.GH_BOT_TOKEN }}
release_version: ${{ needs.prepare.outputs.release-version }}

push-changes:
runs-on: ubuntu-20.04
needs: [prepare, deploy]
steps:
- uses: shabados/actions/setup-git-identity@release/v2
with:
user: Shabad OS Bot
email: [email protected]

- name: Download workspace
uses: actions/download-artifact@v2
with:
name: release-workspace
path: ${{ github.workspace }}

- name: Push changes
if: inputs.prerelease != true
run: git push origin main --follow-tags

0 comments on commit f3d5031

Please sign in to comment.