This repository was archived by the owner on Aug 30, 2024. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork18
Release action#182
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Release action#182
Changes fromall commits
Commits
Show all changes
10 commits Select commitHold shift + click to select a range
be21484
new release action
cmoogb3e2da7
fixup! new release action
cmoog618bd92
fixup! new release action
cmooga8f3d7e
fixup! new release action
cmooge373e9d
fixup! new release action
cmoogecc6736
fixup! new release action
cmoogfe79d33
fixup! new release action
cmoog55d768e
fixup! new release action
cmoog9ac95cc
fixup! new release action
cmoog6e7cebf
fixup! new release action
cmoogFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
66 changes: 66 additions & 0 deletions.github/workflows/release.yaml
This file contains hidden or 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,66 @@ | ||
on: | ||
push: | ||
tags: "v*" | ||
name: Create Github Release | ||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Install Gon | ||
run: | | ||
brew tap mitchellh/gon | ||
brew install mitchellh/gon/gon | ||
- name: Import Signing Certificates | ||
uses: Apple-Actions/import-codesign-certs@v1 | ||
with: | ||
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }} | ||
p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }} | ||
- name: Build Release Assets | ||
run: ./ci/steps/build.sh | ||
env: | ||
AC_USERNAME: ${{ secrets.AC_USERNAME }} | ||
AC_PASSWORD: ${{ secrets.AC_PASSWORD }} | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
body: "" | ||
draft: true | ||
prerelease: false | ||
- name: Upload Linux Release | ||
id: upload-linux-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./ci/bin/coder-cli-linux-amd64.tar.gz | ||
asset_name: coder-cli-linux-amd64.tar.gz | ||
asset_content_type: application/tar+gzip | ||
- name: Upload MacOS Release | ||
id: upload-macos-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./ci/bin/coder-cli-darwin-amd64.zip | ||
asset_name: coder-cli-darwin-amd64.zip | ||
asset_content_type: application/zip | ||
- name: Upload Windows Release | ||
id: upload-windows-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./ci/bin/coder-cli-windows-386.zip | ||
asset_name: coder-cli-windows-386.zip | ||
asset_content_type: application/zip |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.