diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 39f4020..6fb196b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,7 @@ name: CI on: + - pull_request - push - workflow_dispatch diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..366fe39 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: Release + +on: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+ + +permissions: + contents: write + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: softprops/action-gh-release@v2 diff --git a/README.md b/README.md index c15260c..c96448e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Mongodump Action +# Mongodump GitHub Action for creating a binary export of a database's contents @@ -15,7 +15,7 @@ jobs: backup: runs-on: ubuntu-latest steps: - - uses: gabrielrufino/mongodump-action@v1 + - uses: actalog/mongodump@v1 with: connection-string: ${{ secrets.MONGO_URI }} - uses: actions/upload-artifact@v4 diff --git a/action.yml b/action.yml index cf974cb..2790b82 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: Mongodump Action +name: '@actalog/mongodump' description: GitHub Action for creating a binary export of a database's contents inputs: