Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
asabya committed Jan 27, 2023
1 parent 6f3aa85 commit 8a5a8a8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Build
name: Release

defaults:
run:
shell: bash

on:
push:
branches:
- 'master'
pull_request:
branches:
branches-ignore:
- '**'
tags:
- 'v*.*.*'

jobs:
build:
Expand Down Expand Up @@ -43,3 +46,19 @@ jobs:
with:
name: fairos.aar
path: fairos.aar
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -R
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist --config .goreleaser-mobile.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions .goreleaser-mobile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
project_name: fairos

release:
prerelease: auto
extra_files:
- glob: ./fairos.aar
builds:
- skip: true

0 comments on commit 8a5a8a8

Please sign in to comment.