Skip to content

Commit

Permalink
fix(release): revert ci and update secret token
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuftaufiq committed Jun 9, 2022
1 parent ff16d93 commit e12096d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
name: Publish Package

on:
workflow_run:
workflows: ['Release Package']
types:
- completed
release:
types: [published]

workflow_dispatch:

jobs:
push-to-registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Checkout latest release tag
run: |
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag

- name: Login to Docker Hub
uses: docker/login-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:

- run: npx semantic-release --branches main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_TOKEN }}

0 comments on commit e12096d

Please sign in to comment.