Skip to content

Commit

Permalink
Merge pull request #1 from ohermosa/feat/1.0.8
Browse files Browse the repository at this point in the history
bye bye gitlab
  • Loading branch information
osmollo authored Sep 6, 2020
2 parents 58a1707 + ec98fd3 commit cf508b8
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 65 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/go_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Read release.json
- name: Read package.json
uses: tyankatsu0105/read-package-version-actions@v1
id: package-version

Expand All @@ -28,11 +28,3 @@ jobs:
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.14.7.linux-amd64.tar.gz"
pre_command: go get -v github.com/jcmturner/gokrb5/v8/client github.com/jcmturner/gokrb5/v8/config github.com/jcmturner/gokrb5/v8/credentials github.com/jcmturner/gokrb5/v8/spnego

- name: send gorkscrew binary to gitlab release
run: "curl -X POST https://gitlab.com/api/v4/projects/20847273/releases/${{ steps.package-version.outputs.version }}/assets/links -H \"Private-Token: ${{ secrets.GITLABTOKEN }}\" --data '{\"name\": \"gorkscrew-v${{ steps.package-version.outputs.version }}-linux-amd64.tar.gz\", \"url\": \"https://github.com/ohermosa/gorkscrew/releases/download/v${{ steps.package-version.outputs.version }}/gorkscrew-v${{ steps.package-version.outputs.version }}-linux-amd64.tar.gz\"}'"
shell: bash

- name: send md5sum file to gitlab release
run: "curl -X POST \"https://gitlab.com/api/v4/projects/20847273/releases/${{ steps.package-version.outputs.version }}/assets/links\" -H \"Private-Token: ${{ secrets.GITLABTOKEN }}\" --data '{\"name\": \"gorkscrew-v${{ steps.package-version.outputs.version }}-linux-amd64.tar.gz.md5\", \"url\": \"https://github.com/ohermosa/gorkscrew/releases/download/v${{ steps.package-version.outputs.version }}/gorkscrew-v${{ steps.package-version.outputs.version }}-linux-amd64.tar.gz.md5\"}'"
shell: bash
4 changes: 1 addition & 3 deletions .github/workflows/new_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: new_release
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
create_release:
Expand All @@ -14,7 +12,7 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Read release.json
- name: Read package.json
uses: tyankatsu0105/read-package-version-actions@v1
id: package-version

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/pr_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: pr_test

on:
pull_request:
branches: [ master ]

jobs:
build:
name: test gorkscew PR
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v1

- id: file_changes
uses: trilom/[email protected]

- name: check if package.json has been modified
run: |
grep package.json $HOME/files.json
- name: Set up Go 1.14
uses: actions/setup-go@v1
with:
go-version: 1.14

- name: Get dependencies
run: |
go get -v github.com/jcmturner/gokrb5/v8/config github.com/jcmturner/gokrb5/v8/client github.com/jcmturner/gokrb5/v8/credentials github.com/jcmturner/gokrb5/v8/spnego
- name: Run go test
run: go test -v gorkscrew.go
50 changes: 0 additions & 50 deletions .gitlab-ci.yml

This file was deleted.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"version": "1.0.8"
}
3 changes: 0 additions & 3 deletions release.json

This file was deleted.

0 comments on commit cf508b8

Please sign in to comment.