Skip to content

feat(ci): add option to keep extension source files #102

feat(ci): add option to keep extension source files

feat(ci): add option to keep extension source files #102

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
permissions:
contents: write
id-token: write
packages: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
cache: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Install Cosign
uses: sigstore/cosign-installer@v3
- name: Install Syft
uses: anchore/sbom-action/[email protected]
- name: Login into Github Docker Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Login into Docker Hub
run: echo "${{ secrets.DOCKER_HUB_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
- name: Install Cloudsmith CLI
run: pip install --upgrade cloudsmith-cli
- name: Cloudsmith Uploads
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
run: |
for filename in dist/*.deb; do
cloudsmith push deb friendsofshopware/stable/any-distro/any-version $filename
done
for filename in dist/*.rpm; do
cloudsmith push rpm friendsofshopware/stable/any-distro/any-version $filename
done
for filename in dist/*.apk; do
cloudsmith push alpine friendsofshopware/stable/alpine/any-version $filename
done