Skip to content

Commit

Permalink
Rewrite github action
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Oct 20, 2024
1 parent c99c8d3 commit b742724
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: build
name: Build

on: [push, pull_request]

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
Expand All @@ -18,8 +18,15 @@ jobs:
LICENSE_KEY: ${{ secrets.LICENSE_KEY }}
RUN_INTERVAL: "false"
run: npm test
- name: Publish image
uses: elgohr/Publish-Docker-Github-Action@v5

publish:
needs: test
if: github.event_name == 'push'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: hakanensari/country
username: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit b742724

Please sign in to comment.