Skip to content

Commit

Permalink
Comment build steps for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-vrijswijk committed Aug 17, 2023
1 parent 4102bc0 commit 0067a45
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,30 @@ on:
push:
branches:
- main
pull_request:
types: [synchronize, opened, reopened]

permissions:
contents: write
pull-requests: write
packages: write

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: simple
package-name: tgtg
version-file: resources/version.txt
# release-please:
# runs-on: ubuntu-latest
# outputs:
# release_created: ${{ steps.release.outputs.release_created }}
# tag_name: ${{ steps.release.outputs.tag_name }}
# steps:
# - uses: google-github-actions/release-please-action@v3
# id: release
# with:
# release-type: simple
# package-name: tgtg
# version-file: resources/version.txt
package:
needs: [release-please]
if: ${{ needs.release-please.outputs.release_created }}
# needs: [release-please]
# if: ${{ needs.release-please.outputs.release_created }}
runs-on: ${{ matrix.OS }}
env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -60,12 +62,12 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# type=raw,value=${{ needs.release-please.outputs.tag_name }}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=raw,value=${{ needs.release-please.outputs.tag_name }}
type=raw,value=latest
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@v1
Expand Down Expand Up @@ -99,13 +101,13 @@ jobs:
path: ${{ matrix.local_path }}
if-no-files-found: error
retention-days: 2
- name: Upload release artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.release-please.outputs.tag_name }} ${{ matrix.local_path }}
# - name: Upload release artifacts
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: gh release upload ${{ needs.release-please.outputs.tag_name }} ${{ matrix.local_path }}
package-arm:
needs: [release-please]
if: ${{ needs.release-please.outputs.release_created }}
# needs: [release-please]
# if: ${{ needs.release-please.outputs.release_created }}
runs-on: ${{ matrix.OS }}
env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -135,20 +137,22 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# type=raw,value=${{ needs.release-please.outputs.tag_name }}
tags: |
type=schedule
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
type=raw,value=${{ needs.release-please.outputs.tag_name }}
type=raw,value=latest
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@v1
with:
power: true
jvm: "temurin:17"
- name: Package app
run: scala-cli package . -o "${{ matrix.local_path }}" --assembly
run: |
mkdir -p artifacts
scala-cli package . -o "${{ matrix.local_path }}" --assembly
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
Expand Down

0 comments on commit 0067a45

Please sign in to comment.