Skip to content

Commit

Permalink
feat: finishing off
Browse files Browse the repository at this point in the history
  • Loading branch information
welpie21 committed Oct 17, 2024
1 parent a5a00ec commit e5799c2
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 116 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Run Action
name: CI

on:
workflow_dispatch:
workflow_call:
push:
branches: [main, change/action-improvements]
branches: [main]
pull_request:
branches: [main]

Expand All @@ -17,7 +18,7 @@ jobs:
name: Run Action
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Action
uses: ./
Expand All @@ -28,7 +29,6 @@ jobs:
surrealdb_password: "root"
surrealdb_strict: true
surrealdb_log: "trace"
allow_all: false

- name: Retrieve SurrealDB version
run: curl http://127.0.0.1:8000/version
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Action

on:
release:
types: [published]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Tag name that the major tag will point to'
required: true

env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
permissions:
contents: write

jobs:

ci:
name: CI Job
uses: ./.github/workflows/ci.yml

update_tag:
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
runs-on: ubuntu-latest
needs: [ci]
permissions:
contents: write
steps:
- name: Update the ${{ env.TAG_NAME }} tag
uses: actions/[email protected]
with:
source-tag: ${{ env.TAG_NAME }}
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
surrealdb_auth: false
surrealdb_strict: false
surrealdb_log: info
surrealdb_additional_args: --allow-all
surrealdb_additional_args: --allow-all
```
## License
Expand Down
87 changes: 0 additions & 87 deletions entrypoint.sh

This file was deleted.

0 comments on commit e5799c2

Please sign in to comment.