Skip to content

Commit

Permalink
Add publish workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
asfernandes committed Jan 25, 2025
1 parent 97598c9 commit a0fac8a
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: publish

on:
push:
branches:
- master
schedule:
- cron: "0 0 * * 1"
workflow_dispatch:

jobs:

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

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 10

- name: Install tools
shell: pwsh
run: |
Install-Module InvokeBuild -Force
- name: Build
shell: pwsh
run: |
Invoke-Build
- name: Test
shell: pwsh
run: |
Invoke-Build Test
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish
shell: pwsh
run: |
Invoke-Build Publish
- name: Log out from Docker Hub
run: |
docker logout

0 comments on commit a0fac8a

Please sign in to comment.