-
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.
- Loading branch information
1 parent
647a25c
commit 7975cfe
Showing
1 changed file
with
25 additions
and
6 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 |
---|---|---|
@@ -1,14 +1,33 @@ | ||
name: sg-release | ||
on: workflow_dispatch | ||
|
||
job: | ||
on: | ||
workflow_dispatch | ||
|
||
env: | ||
|
||
|
||
jobs: | ||
sg-release: | ||
name: Run a release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install sg | ||
run: curl --proto '=https' --tlsv1.2 -sSLf https://install.sg.dev | sh | ||
run: curl -L --proto '=https' --tlsv1.2 -sSLf -o sg https://github.com/sourcegraph/sg/releases/download/2024-06-11-15-14-add4baa4/sg_linux_amd64_static | ||
|
||
#- name: Run internal release | ||
# run: sg release create --version=auto | ||
chmod +x sg | ||
- name: Update apt | ||
run: apt update && apt upgrade -y | ||
- name: Install dependencies | ||
run: apt-get install libpcre3-dev libev4 -y | ||
- name: Install Comby | ||
run: bash <(curl -sL get-comby.netlify.app) | ||
- name: Install gh | ||
run: apt install gh | ||
- name: Run sg | ||
run: ./sg release create --version=auto --inputs=server=auto --pretend | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |