Skip to content

Commit

Permalink
remove ci (switch to netlify)
Browse files Browse the repository at this point in the history
add banner
switch to regular router
fix urls
  • Loading branch information
Armaldio committed Nov 12, 2024
1 parent 493d3d8 commit c4d9597
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 59 deletions.
106 changes: 53 additions & 53 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: Deploy
# name: Deploy

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# on:
# # Runs on pushes targeting the default branch
# push:
# branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# permissions:
# contents: read
# pages: write
# id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
# # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
# concurrency:
# group: "pages"
# cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# jobs:
# # Build job
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
run_install: false
# - uses: pnpm/action-setup@v4
# with:
# run_install: false

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
cache: pnpm
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: "22"
# cache: pnpm

- name: Setup Pages
uses: actions/configure-pages@v5
# - name: Setup Pages
# uses: actions/configure-pages@v5

- name: Install dependencies
run: pnpm install
# - name: Install dependencies
# run: pnpm install

- name: Static HTML export
run: pnpm run build
# - name: Static HTML export
# run: pnpm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: ./dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# # Deployment job
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Binary file added public/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
import IndexView from '../views/index.vue'

const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
Expand Down
4 changes: 2 additions & 2 deletions src/views/download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
<div class="flex flex-column text-center justify-content-center mt-8">
<p>Looking for beta or older versions?</p>
<a href="https://github.com/CynToolkit/cyn/releases"
<a href="https://github.com/CynToolkit/pipelab/releases"
>Check the releases page</a
>
</div>
Expand Down Expand Up @@ -127,7 +127,7 @@ export interface Uploader {
const release = ref<Release>();
fetch("https://api.github.com/repos/CynToolkit/cyn/releases/latest", {
fetch("https://api.github.com/repos/CynToolkit/pipelab/releases/latest", {
headers: {
"Accept": "application/vnd.github+json",
}
Expand Down
4 changes: 2 additions & 2 deletions src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="flex align-items-center justify-content-between py-3">
<div class="logo">
<RouterLink class="nav-link-logo" :to="{ name: 'Home' }">
Pipelab
<img height="48" src="/banner.png" alt="Pipelab" class="logo-img" />
</RouterLink>
</div>
<nav class="hidden lg:flex">
Expand Down Expand Up @@ -92,7 +92,7 @@ const menuItems = ref([
{
label: "Github",
icon: "pi pi-github",
to: "//github.com/CynToolkit/cyn",
to: "//github.com/CynToolkit/pipelab",
external: true,
disabled: false,
iconOnly: true,
Expand Down

0 comments on commit c4d9597

Please sign in to comment.