Skip to content

Commit

Permalink
fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
lacraig2 committed Oct 9, 2023
1 parent 79e237f commit 4fcfd5e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: 'Checkout code'
uses: actions/checkout@v4


- name: 'Login to Github Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: |
docker run --rm -v $PWD:/app -w /app gcc gcc -o example example.c
- name: Save package
uses: actions/upload-artifact@v3
with:
name: example_package
path: example
docker build -t ghcr.io/${{ github.repository }}:latest .
docker push ghcr.io/${{ github.repository }}:latest

0 comments on commit 4fcfd5e

Please sign in to comment.