Skip to content

Commit 4f04596

Browse files
yqtian-seCopilot
andauthored
Fix SEN resource deployment paths (#142)
* Fix SEN resource deployment paths * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent b395357 commit 4f04596

12 files changed

Lines changed: 36 additions & 5 deletions

.github/workflows/pr-preview.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ jobs:
9494
--baseURL "${{ steps.base_url.outputs.base_url }}/" \
9595
--destination "${{ github.workspace }}/public/pr-${{ github.event.number }}"
9696
97+
- name: Copy legacy SEN assets for PR preview
98+
working-directory: pr
99+
env:
100+
PUBLIC_DIR: ${{ github.workspace }}/public/pr-${{ github.event.number }}
101+
run: node scripts/copy-legacy-sen-assets.mjs
102+
97103
- name: Check internal links
98104
working-directory: pr
99105
env:

.github/workflows/production-deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ jobs:
6464
--minify \
6565
--baseURL "${{ steps.pages.outputs.base_url }}/"
6666
67+
- name: Copy legacy SEN assets
68+
run: node scripts/copy-legacy-sen-assets.mjs
69+
6770
- name: Check internal links
6871
env:
6972
SITE_BASE_URL: ${{ steps.pages.outputs.base_url }}/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN TARGETARCH="${TARGETARCH:-$(dpkg --print-architecture)}" \
1818
&& wget -q -O "/tmp/${HUGO_TARBALL}" "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_TARBALL}" \
1919
&& wget -q -O /tmp/hugo_checksums.txt "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_checksums.txt" \
2020
&& grep " ${HUGO_TARBALL}\$" /tmp/hugo_checksums.txt > /tmp/hugo_checksums_entry.txt \
21-
&& sha256sum -c /tmp/hugo_checksums_entry.txt \
21+
&& (cd /tmp && sha256sum -c hugo_checksums_entry.txt) \
2222
&& tar -xzf "/tmp/${HUGO_TARBALL}" -C /usr/local/bin hugo \
2323
&& rm -f "/tmp/${HUGO_TARBALL}" /tmp/hugo_checksums.txt /tmp/hugo_checksums_entry.txt
2424

content/SEN/guideline.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Finally, as _reports_, we welcome summary reports from workshops conducted under
1818

1919
Manuscripts should be prepared by using **SEN style** and submitted by sending their sources and/or .pdfs with all fonts embedded. The following templates are available:
2020

21-
* [.doc](/SEN/ACM_SIGSOFT_pubform.doc): MS Word 97-2003
22-
* [.docx](/SEN/ACM_SIGSOFT_pubform.docx): MS Word 2007
23-
* [.cls](/SEN/acm_sen_article.cls) or [.zip](/SEN/latex-example.zip): LaTeX
21+
* [.doc](/sen/ACM_SIGSOFT_pubform.doc): MS Word 97-2003
22+
* [.docx](/sen/ACM_SIGSOFT_pubform.docx): MS Word 2007
23+
* [.cls](/sen/acm_sen_article.cls) or [.zip](/sen/latex-example.zip): LaTeX
2424

2525
Authors are warmly encouraged to carefully structure the abstract of their manuscript, so as to ensure that it reflects the key points addressed in the document, which will appear in full in the ACM Digital Library. Authors are also encouraged to use the keywords found on the ACM Computer Classification System (CCS) that is available [online](https://dl.acm.org/ccs).
2626

@@ -59,4 +59,3 @@ Plagiarism is copying words from another published paper (your own or someone el
5959

6060
Any copied text longer than a few words should be put in quotes and given a reference. If you copy more than a full sentence, use indented paragraphs to denote a block quote. Note that copying text and then changing words here and there is not good enough. Use quotes or rewrite completely.
6161

62-

scripts/copy-legacy-sen-assets.mjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env node
2+
3+
import fs from "node:fs";
4+
import path from "node:path";
5+
6+
const publicRoot = path.resolve(process.env.PUBLIC_DIR || process.argv[2] || "public");
7+
const sourceDir = path.resolve(process.env.SEN_STATIC_DIR || process.argv[3] || "static/sen");
8+
const legacyDir = path.join(publicRoot, "SEN");
9+
10+
if (!fs.existsSync(publicRoot) || !fs.statSync(publicRoot).isDirectory()) {
11+
console.error(`Missing Hugo public directory: ${publicRoot}`);
12+
process.exit(1);
13+
}
14+
15+
if (!fs.existsSync(sourceDir) || !fs.statSync(sourceDir).isDirectory()) {
16+
console.error(`Missing SEN static assets directory: ${sourceDir}`);
17+
process.exit(1);
18+
}
19+
20+
fs.mkdirSync(legacyDir, { recursive: true });
21+
fs.cpSync(sourceDir, legacyDir, { recursive: true });
22+
23+
console.log(`Copied SEN assets to ${path.relative(process.cwd(), legacyDir) || legacyDir}`);

content/SEN/ACM_SIGSOFT_SEN_Publication_Terms_and_Conditions.pdf renamed to static/sen/ACM_SIGSOFT_SEN_Publication_Terms_and_Conditions.pdf

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)