fix(#3): 🔥 Remove github actions
This commit is contained in:
parent
21a70013f4
commit
f535f4344e
1 changed files with 0 additions and 39 deletions
|
@ -14,45 +14,6 @@ jobs:
|
|||
go-version: '1.21'
|
||||
- name: Build Go Binary
|
||||
run: go build -o loic
|
||||
- name: Check if Package Exists
|
||||
id: check_package_exists
|
||||
uses: github.com/fjogeleit/http-request-action@v1
|
||||
with:
|
||||
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary
|
||||
method: GET
|
||||
headers: |
|
||||
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
|
||||
- name: Create Package if it Doesn't Exist
|
||||
if: steps.check_package_exists.outcome == 'failure'
|
||||
uses: github.com/fjogeleit/http-request-action@v1
|
||||
with:
|
||||
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic
|
||||
method: POST
|
||||
body: '{ "name": "loic-binary", "description": "Loic Go Binary" }'
|
||||
headers: |
|
||||
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
|
||||
- name: Create New Version
|
||||
id: create_version
|
||||
uses: github.com/fjogeleit/http-request-action@v1
|
||||
with:
|
||||
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary/versions
|
||||
method: POST
|
||||
body: '{ "name": "${{ github.sha }}"}'
|
||||
headers: |
|
||||
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
|
||||
- name: Get Version ID
|
||||
id: get_version_id
|
||||
run: |
|
||||
echo "version_id=$(jq -r '.id' <<< "${{ steps.create_version.body }}")" >> $GITHUB_OUTPUT
|
||||
- name: Upload Asset
|
||||
uses: github.com/fjogeleit/http-request-action@v1
|
||||
with:
|
||||
url: ${{ env.FORGEJO_BASE_URL }}/api/v1/repos/{{ .Identity }}/loic-go/packs/generic/loic-binary/versions/${{ steps.get_version_id.outputs.version_id }}/assets
|
||||
method: POST
|
||||
body: ./loic
|
||||
headers: |
|
||||
Authorization: token ${{ secrets.FORGEJO_API_TOKEN }}
|
||||
Content-Type: application/octet-stream
|
||||
- name: Build and Push Docker Image
|
||||
run: |
|
||||
docker build -t loic:${{ github.sha }} .
|
||||
|
|
Loading…
Reference in a new issue