Skip to content

Commit

Permalink
ci: refactor release action to include rc versions and push to releas…
Browse files Browse the repository at this point in the history
…e branch

fix: broken build for disabled options in admin section
  • Loading branch information
dmijatovic committed Jul 2, 2024
1 parent e168654 commit 6af2647
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 6 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ name: release

on:
workflow_dispatch:
inputs:
pre_release:
required: true
description: Create pre-release version, eq. 1.0.0-rc.0
type: boolean
default: false
push:
branches:
- release

jobs:
release_tag:
Expand Down Expand Up @@ -35,6 +44,10 @@ jobs:
skip-git-pull: true
# skip tag push - it will not push but it will tag
git-push: false
# set to true to flag rc, eg 0.1.0-rc.0
pre-release: ${{inputs.pre_release}}
# initial version if no tag present
fallback-version: 0.0.1

log_release_tag:
needs: release_tag
Expand Down
8 changes: 5 additions & 3 deletions frontend/pages/admin/categories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ import AdminPageWithNav from '~/components/admin/AdminPageWithNav'
import {adminPages} from '~/components/admin/AdminNav'
import AdminCategories from '~/components/admin/categories'

const pageTitle = `${adminPages['categories'].title} | Admin page | ${app.title}`
// disable categories option, 2024-07-02
// change this to categories when enabled
const pageTitle = `${adminPages['pages'].title} | Admin page | ${app.title}`

export default function AdminCategoriesPage() {
return (
<DefaultLayout>
<Head>
<title>{pageTitle}</title>
</Head>
<AdminPageWithNav title={adminPages['categories'].title}>
</Head>pages
<AdminPageWithNav title={adminPages['pages'].title}>
<AdminCategories />
</AdminPageWithNav>
</DefaultLayout>
Expand Down
4 changes: 3 additions & 1 deletion frontend/pages/admin/communities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import {SearchProvider} from '~/components/search/SearchContext'
import {PaginationProvider} from '~/components/pagination/PaginationContext'
import AdminCommunities from '~/components/admin/communities'

// disable communities option, 2024-07-02
// change this to communities when enabled
const pageTitle = `${adminPages['pages'].title} | Admin page | ${app.title}`

const pagination = {
Expand All @@ -36,7 +38,7 @@ export default function AdminCommunitiesPage() {
<Head>
<title>{pageTitle}</title>
</Head>
<AdminPageWithNav title={adminPages['communities'].title}>
<AdminPageWithNav title={adminPages['pages'].title}>
<SearchProvider>
<PaginationProvider pagination={pagination}>
<AdminCommunities />
Expand Down
6 changes: 4 additions & 2 deletions frontend/pages/admin/software-highlights.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import AdminPageWithNav from '~/components/admin/AdminPageWithNav'
import {adminPages} from '~/components/admin/AdminNav'
import AdminSoftwareHighlight from '~/components/admin/software-highlights/index'

const pageTitle = `${adminPages['organisations'].title} | Admin page | ${app.title}`
// disable softwareHighlights option, 2024-07-02
// change this to softwareHighlights when enabled
const pageTitle = `${adminPages['pages'].title} | Admin page | ${app.title}`

export default function AdminSoftwareHighlightsPage() {

Expand All @@ -26,7 +28,7 @@ export default function AdminSoftwareHighlightsPage() {
<Head>
<title>{pageTitle}</title>
</Head>
<AdminPageWithNav title={adminPages['softwareHighlights'].title}>
<AdminPageWithNav title={adminPages['pages'].title}>
<AdminSoftwareHighlight />
</AdminPageWithNav>
</DefaultLayout>
Expand Down

0 comments on commit 6af2647

Please sign in to comment.