Skip to content

Commit

Permalink
Merge pull request #107 from LibrariesHacked/106-auto-publish-using-g…
Browse files Browse the repository at this point in the history
…h-pages

Refresh and github action for auto deploy
  • Loading branch information
DaveBathnes committed Mar 18, 2024
2 parents 6741e20 + 3cfb5a2 commit afadaab
Show file tree
Hide file tree
Showing 10 changed files with 227 additions and 4,632 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,25 @@
name: CI

on:
push:
branches: [main]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "latest"
- run: npm install

- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "github-actions-bot <support+actions@github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -10,15 +10,15 @@ What things you need to install the software and how to install them

## Built With

* [React JS](https://reactjs.org/) - The web framework used
- [React JS](https://reactjs.org/) - The web framework used

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/your/project/tags).

## Authors

* **Dave Rowe** - *Initial work* - [DaveBathnes](https://github.com/DaveBathnes)
- **Dave Rowe** - _Initial work_ - [DaveBathnes](https://github.com/DaveBathnes)

See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.

Expand All @@ -28,4 +28,4 @@ This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md

## Acknowledgments

* All the library services
- All the library services
58 changes: 31 additions & 27 deletions index.html
@@ -1,34 +1,38 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" />
<link href='https://api.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.css' rel='stylesheet' />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<!--
<head>
<meta charset="utf-8" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"
/>
<link
href="https://api.mapbox.com/mapbox-gl-js/v1.0.0/mapbox-gl.css"
rel="stylesheet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="/manifest.json" />
<title>Mobile libraries</title>

<script>
(function () {
var redirect = sessionStorage.redirect;
delete sessionStorage.redirect;
if (redirect && redirect != location.href) {
history.replaceState(null, null, redirect);
}
})();
</script>
</head>
<link rel="manifest" href="/manifest.json" />
<title>Mobile libraries</title>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
<script>
;(function () {
var redirect = sessionStorage.redirect
delete sessionStorage.redirect
if (redirect && redirect != location.href) {
history.replaceState(null, null, redirect)
}
})()
</script>
</head>

</html>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>

0 comments on commit afadaab

Please sign in to comment.