Skip to content

Commit

Permalink
Merge pull request #5 from mauvehed/docs-and-tag-release
Browse files Browse the repository at this point in the history
ci(workflow): add GitHub Actions workflow for merging develop into main on tag creation
  • Loading branch information
mauvehed authored Dec 7, 2024
2 parents 2b405ab + e750a0e commit f99f517
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/merge-develop-to-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tag Release

on:
push:
tags:
- 'v*'

jobs:
merge-develop-to-main:
name: Merge Develop into Main
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
# Fetch all history for accurate branch merging
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Check out Develop Branch
run: git checkout develop

- name: Merge Develop into Main
run: |
git checkout main
git merge --no-ff develop -m "Merge branch 'develop' into 'main' on tag creation"
- name: Push to Main Branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push origin main
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# All code currently owned by mauvehed

* @mauvehed
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,36 @@

This repository is a continuation of and extension to my existing [yourip](https://github.com/mauvehed/yourip) repository which was written in python and flask. I seek to eventually meet feature parity as I rewrite the application in javascript and vue in this repository.

## Usage

### Development

Please see [Developers](docs/DEVELOPERS.md) for how to setup a dev environment

### Using the website

The current deployment of this tool is hosted and available to all online. You will have a couple choices for how you access
the website and what format your ask for the IP address to be returned in.

1. Point your browser to the official app URL at [https://yourip.app](https://yourip.app)
2. Use your favorite command line web tool (e.g. curl, wget) to access one of the two endpoints (raw or json)

```sh
$ curl -L yourip.app/json
{
"ip": "123.45.6.78"
}
```

```sh
$ curl -L yourIP.app/raw
123.45.6.78
```

## Acknowledgements

> Long desired to build, but for sure inspired by Zate's [https://urip.fyi](https://urip.fyi) web [project](https://github.com/Zate/urip.fyi) in Go
## Stats

![Alt](https://repobeats.axiom.co/api/embed/51a6836661e51cd2af55de642d907d4b57abef75.svg "Repobeats analytics image")
2 changes: 1 addition & 1 deletion docs/DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Check out the [deployment documentation](https://nuxt.com/docs/getting-started/d

We use a simple variation of Git and GitHub Flow for branch control.

### Create and switch to a develop branch
### Create and switch to a develop branch (one-time)

```bash
git checkout -b develop
Expand Down

1 comment on commit f99f517

@vercel
Copy link

@vercel vercel bot commented on f99f517 Dec 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.