mirror of
https://github.com/joho/godotenv.git
synced 2025-06-27 13:04:03 +00:00
Compare commits
2 Commits
release-ac
...
release-te
Author | SHA1 | Date | |
---|---|---|---|
c142d16052 | |||
4e2d182c9a |
32
.github/workflows/release.yml
vendored
Normal file
32
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||||
|
|
||||||
|
name: Upload Release Assets
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Upload Release Assets
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Generate build files
|
||||||
|
uses: thatisuday/go-cross-build@v1
|
||||||
|
with:
|
||||||
|
platforms: 'linux/amd64, linux/ppc64le, darwin/amd64, windows/amd64'
|
||||||
|
package: 'cmd/godotenv'
|
||||||
|
name: 'godotenv'
|
||||||
|
compress: 'true'
|
||||||
|
dest: 'dist'
|
||||||
|
- name: Publish Binaries
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
name: Release ${{ github.ref }}
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
file: dist/*
|
||||||
|
file_glob: true
|
||||||
|
overwrite: true
|
||||||
|
|
Reference in New Issue
Block a user