From 49fe233c16bf3065558b8739d94023aa3ecb0ef2 Mon Sep 17 00:00:00 2001 From: Syuugo Date: Mon, 3 Jun 2024 01:13:26 +0900 Subject: [PATCH] Allow redirect --- .github/workflows/deploy.yml | 35 +++++++++++++++++++++++++++++++++++ Gemfile | 4 ++++ _config.yml | 4 ++++ README.md => docs/README.md | 0 docs/open/TouchSetupLogin.apk | 4 ++++ 5 files changed, 47 insertions(+) create mode 100644 .github/workflows/deploy.yml create mode 100644 Gemfile create mode 100644 _config.yml rename README.md => docs/README.md (100%) create mode 100644 docs/open/TouchSetupLogin.apk diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..8a6c746 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,35 @@ +name: GitHub Pages + +on: + push: + branches: + - archive + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + steps: + + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.3 + + - name: Install dependencies + run: | + gem install bundler + bundle install + + - name: Build site + run: bundle exec jekyll build --destination docs/_site + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs/_site diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..fdd2494 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' + +gem 'jekyll', '~> 4.3.2' +gem 'jekyll-redirect-from', '~> 0.16.0' diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..e1209a7 --- /dev/null +++ b/_config.yml @@ -0,0 +1,4 @@ +plugins: + - jekyll-redirect-from + +baseurl: "/docs" diff --git a/README.md b/docs/README.md similarity index 100% rename from README.md rename to docs/README.md diff --git a/docs/open/TouchSetupLogin.apk b/docs/open/TouchSetupLogin.apk new file mode 100644 index 0000000..1d3ce1f --- /dev/null +++ b/docs/open/TouchSetupLogin.apk @@ -0,0 +1,4 @@ +--- +layout: redirect +redirect_to: https://github.com/Kobold831/SetupLogin/releases/download/latest/TouchSetupLogin.apk +---