-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: local build thru make targets (#88)
Signed-off-by: Artur Troian <[email protected]>
- Loading branch information
Showing
20 changed files
with
3,060 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
conventional-commits: true | ||
debug: false | ||
owner: "goreleaser" | ||
package-name: "goreleaser-cross" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
name: dispatch | ||
jobs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: notify goreleaser-cross with new release | ||
if: success() && startsWith(github.ref, 'refs/tags/v') | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.GH_PAT }} | ||
repository: goreleaser/goreleaser-cross | ||
event-type: goreleaser | ||
client-payload: '{"tag": "${{ env.RELEASE_TAG }}"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: goreleaser-bump | ||
|
||
on: | ||
|
@@ -9,34 +10,34 @@ jobs: | |
goreleaser-bump: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
persist-credentials: true | ||
- run: git checkout master | ||
- name: Setup git config | ||
run: | | ||
git config --global user.name github-actions | ||
git config --global user.email "[email protected]" | ||
- name: Setup env | ||
uses: c-py/action-dotenv-to-setenv@v3 | ||
with: | ||
env-file: .env | ||
- name: Goreleaser version | ||
run: | | ||
GORELEASER_VER=${{ github.event.inputs.tag }} | ||
echo "GORELEASER_VER=${GORELEASER_VER#v}" >> $GITHUB_ENV | ||
- name: set new version | ||
run: | | ||
sed -i -e "s/GORELEASER_VERSION=${{ env.GORELEASER_VERSION }}/GORELEASER_VERSION=${{ env.GORELEASER_VER }}/g" .env | ||
- name: Commit new version | ||
run: | | ||
if git add .env > /dev/null 2>&1; then | ||
git commit -m "feat: bump goreleaser to v${{ env.GORELEASER_VER }}" | ||
git push origin master | ||
fi | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
persist-credentials: true | ||
- run: git checkout master | ||
- name: Setup git config | ||
run: | | ||
git config --global user.name github-actions | ||
git config --global user.email "[email protected]" | ||
- name: Setup env | ||
uses: c-py/action-dotenv-to-setenv@v3 | ||
with: | ||
env-file: .env | ||
- name: Goreleaser version | ||
run: | | ||
GORELEASER_VER=${{ github.event.inputs.tag }} | ||
echo "GORELEASER_VER=${GORELEASER_VER#v}" >> $GITHUB_ENV | ||
- name: set new version | ||
run: | | ||
sed -i -e "s/GORELEASER_VERSION=${{ env.GORELEASER_VERSION }}/GORELEASER_VERSION=${{ env.GORELEASER_VER }}/g" .env | ||
- name: Commit new version | ||
run: | | ||
if git add .env > /dev/null 2>&1; then | ||
git commit -m "feat: bump goreleaser to v${{ env.GORELEASER_VER }}" | ||
git push origin master | ||
fi | ||
notify-goreleaser-bump: | ||
runs-on: ubuntu-latest | ||
needs: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.